-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Add CNIv2 Linux to Load Test pipeline (#2141)
* Initial Commit * Add sleep for swift cluster * Change NPM|CNI Integration * Addressing comments * Add: NPM continueOnError * Add: Generate logs for NPM * Change NPM Linux branch - long sleep 10s * refactor: linux validate * fix: rebase * Add: maxSkew for noop deployments * Add: Capture improper node restart * Add: Restart CNS case for Cilium * Addressing Comments * Add: Restart CNS template
- Loading branch information
1 parent
4fa3bf4
commit 4772008
Showing
13 changed files
with
612 additions
and
303 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
.pipelines/cni/load-test-templates/restart-cns-template.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
parameters: | ||
clusterName: "" | ||
cni: "cilium" | ||
scaleup: 100 | ||
nodeCount: 10 | ||
|
||
steps: | ||
- task: AzureCLI@1 | ||
inputs: | ||
azureSubscription: $(BUILD_VALIDATIONS_SERVICE_CONNECTION) | ||
scriptLocation: "inlineScript" | ||
scriptType: "bash" | ||
addSpnToEnvironment: true | ||
inlineScript: | | ||
make -C ./hack/aks set-kubeconf AZCLI=az CLUSTER=${{ parameters.clusterName }} | ||
kubectl get pod -owide -A | ||
echo "Ensure there are pods scheduled on each node" | ||
cd test/integration/load | ||
scale=$(( ${{ parameters.scaleup }} * ${{ parameters.nodeCount }} )) | ||
go test -count 1 -timeout 30m -tags load -run ^TestScaleDeployment$ -tags=load -replicas=$scale | ||
cd ../../../ | ||
echo "Validate pod IP assignment before CNS restart" | ||
make test-validate-state CNI_TYPE=${{ parameters.cni }} | ||
echo "restart CNS" | ||
kubectl rollout restart ds azure-cns -n kube-system | ||
kubectl rollout status ds azure-cns -n kube-system | ||
kubectl get pod -owide -A | ||
echo "Validate pod IP assignment after CNS restart" | ||
make test-validate-state CNI_TYPE=${{ parameters.cni }} | ||
name: "restartCNS" | ||
displayName: "Restart CNS and Validate pods" | ||
retryCountOnTaskFailure: 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.