Reset: Check for kube-ipvs0 presence before remove it (#3816)

pull/3826/head
Erwan Miran 2018-12-05 04:18:50 +01:00 committed by Kubernetes Prow Robot
parent 2c1dd69891
commit 0d1be39a97
1 changed files with 6 additions and 0 deletions

View File

@ -112,10 +112,16 @@
when:
- kube_proxy_mode == 'ipvs'
- name: reset | check kube-ipvs0 network device
stat:
path: /sys/class/net/kube-ipvs0
register: kube_ipvs0
- name: reset | Remove kube-ipvs0
command: "ip link del kube-ipvs0"
when:
- kube_proxy_mode == 'ipvs'
- kube_ipvs0.stat.exists
- name: reset | delete some files and directories
file: