Skip to content

Commit 6292cc7

Browse files
authored
ci: mtu check for cilium e2e (#3624)
* init commit: create script for mtu check * ci: cilium e2e run mtu check * ci: scale pod deployment in release tests * ci: rollout status * test: template call * addressing comments, fix script scale deployment * address nits, test maxSkew, add exit on errors * adding missing template calls * fix cilium-overlay e2e
1 parent 1897a16 commit 6292cc7

File tree

11 files changed

+156
-0
lines changed

11 files changed

+156
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ stages:
266266
fi
267267
name: "testAsyncDelete"
268268
displayName: "Verify Async Delete when CNS is down"
269+
- template: ../../templates/cilium-mtu-check.yaml
269270
- template: ../k8s-e2e/k8s-e2e-job-template.yaml
270271
parameters:
271272
sub: $(BUILD_VALIDATIONS_SERVICE_CONNECTION)

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,3 +158,5 @@ steps:
158158
fi
159159
name: "testAsyncDelete"
160160
displayName: "Verify Async Delete when CNS is down"
161+
162+
- template: ../../templates/cilium-mtu-check.yaml

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,3 +170,5 @@ steps:
170170
fi
171171
name: "testAsyncDelete"
172172
displayName: "Verify Async Delete when CNS is down"
173+
174+
- template: ../../templates/cilium-mtu-check.yaml

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,8 @@ steps:
196196
name: "testAsyncDelete"
197197
displayName: "Verify Async Delete when CNS is down"
198198
199+
- template: ../../templates/cilium-mtu-check.yaml
200+
199201
- script: |
200202
ARTIFACT_DIR=$(Build.ArtifactStagingDirectory)/test-output/
201203
echo $ARTIFACT_DIR

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,8 @@ steps:
198198
fi
199199
name: "testAsyncDelete"
200200
displayName: "Verify Async Delete when CNS is down"
201+
202+
- template: ../../templates/cilium-mtu-check.yaml
201203

202204
- script: |
203205
ARTIFACT_DIR=$(Build.ArtifactStagingDirectory)/test-output/

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,3 +237,5 @@ steps:
237237
fi
238238
name: "testAsyncDelete"
239239
displayName: "Verify Async Delete when CNS is down"
240+
241+
- template: ../../templates/cilium-mtu-check.yaml

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,3 +248,7 @@ steps:
248248
fi
249249
name: "testAsyncDelete"
250250
displayName: "Verify Async Delete when CNS is down"
251+
252+
- template: ../../templates/cilium-mtu-check.yaml
253+
254+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
steps:
2+
- script: |
3+
cd hack/scripts
4+
chmod +x cilium-mtu-validation.sh
5+
./cilium-mtu-validation.sh
6+
name: "CiliumMTUValidation"
7+
displayName: "Run Cilium MTU Validation"

.pipelines/templates/cilium-tests.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,5 @@ steps:
8181
fi
8282
name: "testAsyncDelete"
8383
displayName: "Verify Async Delete when CNS is down"
84+
85+
- template: ./cilium-mtu-check.yaml

hack/manifests/nginx.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: nginx
5+
labels:
6+
app: nginx
7+
namespace: kube-system
8+
spec:
9+
replicas: 4
10+
selector:
11+
matchLabels:
12+
app: nginx
13+
template:
14+
metadata:
15+
labels:
16+
app: nginx
17+
spec:
18+
containers:
19+
- name: nginx
20+
image: mcr.microsoft.com/azurelinux/base/nginx:1
21+
ports:
22+
- containerPort: 80
23+
topologySpreadConstraints:
24+
- maxSkew: 1
25+
topologyKey: kubernetes.io/hostname # KV: Key is hostname, value is each unique nodename
26+
whenUnsatisfiable: ScheduleAnyway
27+
labelSelector:
28+
matchLabels:
29+
app: nginx

0 commit comments

Comments
 (0)