Skip to content

Commit 4888f61

Browse files
committed
ci: scale pod deployment in release tests
1 parent 28bd184 commit 4888f61

File tree

10 files changed

+30
-7
lines changed

10 files changed

+30
-7
lines changed

.pipelines/cni/cilium/cilium-overlay-load-test-template.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ stages:
7878
addSpnToEnvironment: true
7979
inlineScript: |
8080
set -ex
81-
az extension remove --name aks-preview || true
82-
az extension add --name aks-preview --version 14.0.0b3 --yes
81+
az extension add --name aks-preview
8382
make -C ./hack/aks set-kubeconf AZCLI=az CLUSTER=${{ parameters.clusterName }}-$(commitID)
8483
ls -lah
8584
pwd
@@ -135,8 +134,7 @@ stages:
135134
addSpnToEnvironment: true
136135
inlineScript: |
137136
set -ex
138-
az extension remove --name aks-preview || true
139-
az extension add --name aks-preview --version 14.0.0b3 --yes
137+
az extension add --name aks-preview
140138
make -C ./hack/aks set-kubeconf AZCLI=az CLUSTER=${{ parameters.clusterName }}-$(commitID)
141139
ls -lah
142140
pwd
@@ -236,6 +234,10 @@ stages:
236234
name: "testAsyncDelete"
237235
displayName: "Verify Async Delete when CNS is down"
238236
- script: |
237+
echo "Deploy nginx pods for MTU testing"
238+
kubectl apply -f hack/manifests/nginx.yaml
239+
kubectl wait --for=condition=available --timeout=60s -n kube-system deployment/nginx
240+
kubectl scale deployment nginx --replicas=25 -n kube-system
239241
cd hack/scripts
240242
chmod +x cilium-mtu-validation.sh
241243
./cilium-mtu-validation.sh

.pipelines/singletenancy/cilium-dualstack-overlay/cilium-dualstackoverlay-e2e-step-template.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,9 @@ steps:
163163
displayName: "Verify Async Delete when CNS is down"
164164
165165
- script: |
166+
echo "Deploy nginx pods for MTU testing"
167+
kubectl apply -f hack/manifests/nginx.yaml
168+
kubectl wait --for=condition=available --timeout=60s -n kube-system deployment/nginx
166169
cd hack/scripts
167170
chmod +x cilium-mtu-validation.sh
168171
./cilium-mtu-validation.sh

.pipelines/singletenancy/cilium-dualstack-overlay/cilium-dualstackoverlay-e2e.steps.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ steps:
172172
displayName: "Verify Async Delete when CNS is down"
173173
174174
- script: |
175+
echo "Deploy nginx pods for MTU testing"
176+
kubectl apply -f hack/manifests/nginx.yaml
177+
kubectl wait --for=condition=available --timeout=60s -n kube-system deployment/nginx
175178
cd hack/scripts
176179
chmod +x cilium-mtu-validation.sh
177180
./cilium-mtu-validation.sh

.pipelines/singletenancy/cilium-overlay-withhubble/cilium-overlay-e2e-step-template.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,9 @@ steps:
200200
displayName: "Verify Async Delete when CNS is down"
201201
202202
- script: |
203+
echo "Deploy nginx pods for MTU testing"
204+
kubectl apply -f hack/manifests/nginx.yaml
205+
kubectl wait --for=condition=available --timeout=60s -n kube-system deployment/nginx
203206
cd hack/scripts
204207
chmod +x cilium-mtu-validation.sh
205208
./cilium-mtu-validation.sh

.pipelines/singletenancy/cilium-overlay-withhubble/cilium-overlay-e2e.steps.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,9 @@ steps:
203203
displayName: "Verify Async Delete when CNS is down"
204204
205205
- script: |
206+
echo "Deploy nginx pods for MTU testing"
207+
kubectl apply -f hack/manifests/nginx.yaml
208+
kubectl wait --for=condition=available --timeout=60s -n kube-system deployment/nginx
206209
cd hack/scripts
207210
chmod +x cilium-mtu-validation.sh
208211
./cilium-mtu-validation.sh

.pipelines/singletenancy/cilium-overlay/cilium-overlay-e2e-step-template.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,9 @@ steps:
250250
displayName: "Verify Async Delete when CNS is down"
251251
252252
- script: |
253+
echo "Deploy nginx pods for MTU testing"
254+
kubectl apply -f hack/manifests/nginx.yaml
255+
kubectl wait --for=condition=available --timeout=60s -n kube-system deployment/nginx
253256
cd hack/scripts
254257
chmod +x cilium-mtu-validation.sh
255258
./cilium-mtu-validation.sh

.pipelines/singletenancy/cilium-overlay/cilium-overlay-e2e.steps.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,9 @@ steps:
241241
displayName: "Verify Async Delete when CNS is down"
242242
243243
- script: |
244+
echo "Deploy nginx pods for MTU testing"
245+
kubectl apply -f hack/manifests/nginx.yaml
246+
kubectl wait --for=condition=available --timeout=60s -n kube-system deployment/nginx
244247
cd hack/scripts
245248
chmod +x cilium-mtu-validation.sh
246249
./cilium-mtu-validation.sh

.pipelines/singletenancy/cilium/cilium-e2e.steps.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ steps:
155155
displayName: "Verify Async Delete when CNS is down"
156156
157157
- script: |
158+
echo "Deploy nginx pods for MTU testing"
159+
kubectl apply -f hack/manifests/nginx.yaml
160+
kubectl wait --for=condition=available --timeout=60s -n kube-system deployment/nginx
158161
cd hack/scripts
159162
chmod +x cilium-mtu-validation.sh
160163
./cilium-mtu-validation.sh

.pipelines/templates/cilium-tests.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ steps:
8787
displayName: "Verify Async Delete when CNS is down"
8888
8989
- script: |
90+
echo "Deploy nginx pods for MTU testing"
91+
kubectl apply -f hack/manifests/nginx.yaml
92+
kubectl wait --for=condition=available --timeout=60s -n kube-system deployment/nginx
9093
cd hack/scripts
9194
chmod +x cilium-mtu-validation.sh
9295
./cilium-mtu-validation.sh

hack/scripts/cilium-mtu-validation.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
NAMESPACE="kube-system"
44

5-
# Deploy nginx pods for MTU testing
6-
kubectl apply -f ../manifests/nginx.yaml
7-
kubectl wait --for=condition=available --timeout=60s -n $NAMESPACE deployment/nginx
85

96
echo "Checking MTU for pods in namespace: $NAMESPACE using Cilium agent and nginx MTU"
107

0 commit comments

Comments
 (0)