Restart canal after scale or upgrade. Just like PR#4531, but for canal (#4992)

This commit is contained in:
nico-netminded
2019-07-22 09:50:53 +02:00
committed by Kubernetes Prow Robot
parent fe29c97ae8
commit 49d921cf91
2 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
---
- name: reset_canal_cni
command: /bin/true
notify:
- delete 10-canal.conflist
- delete canal-node containers
- name: delete 10-canal.conflist
file:
path: /etc/canal/10-canal.conflist
state: absent
- name: delete canal-node containers
shell: "docker ps -af name=k8s_POD_canal-node* -q | xargs --no-run-if-empty docker rm -f"