@@ -16,7 +16,7 @@ stages:
16
16
inlineScript : |
17
17
set -ex
18
18
make -C ./hack/swift azcfg AZCLI=az REGION=$(LOCATION)
19
- make -C ./hack/swift overlay-byocni- up AZCLI=az REGION=$(LOCATION) SUB=$(SUBSCRIPTION_ID) CLUSTER=${RESOURCE_GROUP} NODE_COUNT=10 VM_SIZE=Standard_DS4_v2
19
+ make -C ./hack/swift overlay-no-kube-proxy- up AZCLI=az REGION=$(LOCATION) SUB=$(SUBSCRIPTION_ID) CLUSTER=${RESOURCE_GROUP}-$(make revision) NODE_COUNT=10 VM_SIZE=Standard_DS4_v2
20
20
name : " CreateAksCluster"
21
21
displayName : " Create AKS Cluster"
22
22
- stage : install_cilium
@@ -35,7 +35,7 @@ stages:
35
35
inlineScript : |
36
36
set -ex
37
37
az extension add --name aks-preview
38
- make -C ./hack/swift set-kubeconf AZCLI=az CLUSTER=${RESOURCE_GROUP}
38
+ make -C ./hack/swift set-kubeconf AZCLI=az CLUSTER=${RESOURCE_GROUP}-$(make revision)
39
39
ls -lah
40
40
pwd
41
41
kubectl cluster-info
@@ -72,10 +72,9 @@ stages:
72
72
inlineScript : |
73
73
set -ex
74
74
az extension add --name aks-preview
75
- make -C ./hack/swift set-kubeconf AZCLI=az CLUSTER=${RESOURCE_GROUP}
76
- kubectl apply -f hack/manifests/pod.yaml
77
- kubectl apply -f hack/manifests/hostprocess.yaml
78
- bash hack/scripts/scale_deployment.sh
75
+ make -C ./hack/swift set-kubeconf AZCLI=az CLUSTER=${RESOURCE_GROUP}-$(make revision)
76
+ cd test/integration/load
77
+ go test -timeout 30m -tags load -run ^TestLoad$ -tags=load -iterations=4 -scaleup=2400
79
78
- stage : validate_state
80
79
dependsOn : pod_deployment
81
80
displayName : " Validate State"
@@ -89,9 +88,9 @@ stages:
89
88
scriptType : " bash"
90
89
addSpnToEnvironment : true
91
90
inlineScript : |
92
- make -C ./hack/swift set-kubeconf AZCLI=az CLUSTER=${RESOURCE_GROUP}
91
+ make -C ./hack/swift set-kubeconf AZCLI=az CLUSTER=${RESOURCE_GROUP}-$(make revision)
93
92
kubectl get pods -A
94
- bash hack/scripts/validate_state.sh
93
+ make test-validate-state
95
94
name : " ValidateState"
96
95
displayName : " Validate State"
97
96
retryCountOnTaskFailure : 3
@@ -109,18 +108,22 @@ stages:
109
108
addSpnToEnvironment : true
110
109
inlineScript : |
111
110
echo "Scale up the pods and immediated restart the nodes"
112
- make -C ./hack/swift set-kubeconf AZCLI=az CLUSTER=${RESOURCE_GROUP}
111
+ make -C ./hack/swift set-kubeconf AZCLI=az CLUSTER=${RESOURCE_GROUP}-$(make revision)
113
112
make -C ./hack/swift azcfg AZCLI=az REGION=$(LOCATION)
113
+ cd test/integration/load
114
114
echo "Scaling the pods down to 100 per node"
115
- bash ./hack/scripts/scale_deployment.sh -n 0 -u 1000 -s
115
+ go test -count 1 -timeout 30m -tags load -run ^TestScaleDeployment$ -tags=load -scaleup=1000 -skip-wait=true
116
+ cd ../../../
116
117
echo "Restarting the nodes"
117
118
vmss_name=$(az vmss list -g MC_${RESOURCE_GROUP}_${RESOURCE_GROUP}_$(LOCATION) --query "[].name" -o tsv)
118
- make -C ./hack/swift restart-vmss AZCLI=az CLUSTER=${RESOURCE_GROUP} REGION=$(LOCATION) VMSS_NAME=$vmss_name
119
- bash ./hack/scripts/scale_deployment.sh -n 0 -u 1000 -c
119
+ make -C ./hack/swift restart-vmss AZCLI=az CLUSTER=${RESOURCE_GROUP}-$(make revision) REGION=$(LOCATION) VMSS_NAME=$vmss_name
120
+ cd test/integration/load
121
+ go test -count 1 -timeout 30m -tags load -run ^TestScaleDeployment$ -tags=load -replicas=1000
120
122
name : " RestartNodes"
121
123
displayName : " Restart Nodes"
122
124
- script : |
123
- bash hack/scripts/validate_state.sh
125
+ export RESTART_CASE=true
126
+ make test-validate-state
124
127
name: "ValidateState"
125
128
displayName: "Validate State"
126
129
retryCountOnTaskFailure: 3
@@ -148,11 +151,11 @@ stages:
148
151
addSpnToEnvironment : true
149
152
inlineScript : |
150
153
set -ex
151
- make -C ./hack/swift set-kubeconf AZCLI=az CLUSTER=${RESOURCE_GROUP}
154
+ make -C ./hack/swift set-kubeconf AZCLI=az CLUSTER=${RESOURCE_GROUP}-$(make revision)
152
155
name : " GetCluster"
153
156
displayName : " Get AKS Cluster"
154
157
- script : |
155
- k delete deployment container -n default
158
+ kubectl delete ns load-test
156
159
cilium connectivity test
157
160
retryCountOnTaskFailure: 6
158
161
name: "CiliumConnectivityTests"
@@ -175,9 +178,9 @@ stages:
175
178
if [ "$(DELETE_RESOURCES)" ]
176
179
then
177
180
echo "Deleting Cluster and resource group"
178
- make -C ./hack/swift set-kubeconf AZCLI=az CLUSTER=${RESOURCE_GROUP}
181
+ make -C ./hack/swift set-kubeconf AZCLI=az CLUSTER=${RESOURCE_GROUP}-$(make revision)
179
182
make -C ./hack/swift azcfg AZCLI=az REGION=$(LOCATION)
180
- make -C ./hack/swift down AZCLI=az REGION=$(LOCATION) SUB=$(SUBSCRIPTION_ID) CLUSTER=${RESOURCE_GROUP}
183
+ make -C ./hack/swift down AZCLI=az REGION=$(LOCATION) SUB=$(SUBSCRIPTION_ID) CLUSTER=${RESOURCE_GROUP}-$(make revision)
181
184
echo "Cluster and resources down"
182
185
else
183
186
echo "Deletion of resources is False"
0 commit comments