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

This commit is contained in:
Erwan Miran 2018-12-05 04:18:50 +01:00 committed by Kubernetes Prow Robot
parent 2c1dd69891
commit 0d1be39a97

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: