From d156ef2eb2d1d921d3e0e7d7a4a0c7869204edd5 Mon Sep 17 00:00:00 2001 From: Camryn Lee Date: Thu, 1 May 2025 18:22:05 +0000 Subject: [PATCH] ci: restart cilium ds after node restart --- .../cni/load-test-templates/restart-node-template.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.pipelines/cni/load-test-templates/restart-node-template.yaml b/.pipelines/cni/load-test-templates/restart-node-template.yaml index 2cdd4230f3..fac8a3da87 100644 --- a/.pipelines/cni/load-test-templates/restart-node-template.yaml +++ b/.pipelines/cni/load-test-templates/restart-node-template.yaml @@ -34,8 +34,17 @@ steps: done fi + # Restart cilium if it is installed, bpf maps and endpoint states can be stale after a node restart (versions < v1.17) + if [ ${{ parameters.cni }} = 'cilium' ]; then + echo "Restart Cilium and ensure it is ready and available. " + kubectl rollout restart ds -n kube-system cilium + kubectl rollout status ds -n kube-system cilium + kubectl get pods -n kube-system -l k8s-app=cilium -owide + fi + echo "Ensure Load-Test deployment pods are marked as ready" kubectl rollout status deploy -n load-test + name: "RestartNodes" displayName: "Restart Nodes"