Skip to content

Commit d156ef2

Browse files
committed
ci: restart cilium ds after node restart
1 parent 70a4fb5 commit d156ef2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.pipelines/cni/load-test-templates/restart-node-template.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,17 @@ steps:
3434
done
3535
fi
3636
37+
# Restart cilium if it is installed, bpf maps and endpoint states can be stale after a node restart (versions < v1.17)
38+
if [ ${{ parameters.cni }} = 'cilium' ]; then
39+
echo "Restart Cilium and ensure it is ready and available. "
40+
kubectl rollout restart ds -n kube-system cilium
41+
kubectl rollout status ds -n kube-system cilium
42+
kubectl get pods -n kube-system -l k8s-app=cilium -owide
43+
fi
44+
3745
echo "Ensure Load-Test deployment pods are marked as ready"
3846
kubectl rollout status deploy -n load-test
47+
3948
name: "RestartNodes"
4049
displayName: "Restart Nodes"
4150

0 commit comments

Comments
 (0)