Reset: Check for kube-ipvs0 presence before remove it (#3816)
This commit is contained in:
parent
2c1dd69891
commit
0d1be39a97
1 changed files with 6 additions and 0 deletions
|
@ -112,10 +112,16 @@
|
||||||
when:
|
when:
|
||||||
- kube_proxy_mode == 'ipvs'
|
- 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
|
- name: reset | Remove kube-ipvs0
|
||||||
command: "ip link del kube-ipvs0"
|
command: "ip link del kube-ipvs0"
|
||||||
when:
|
when:
|
||||||
- kube_proxy_mode == 'ipvs'
|
- kube_proxy_mode == 'ipvs'
|
||||||
|
- kube_ipvs0.stat.exists
|
||||||
|
|
||||||
- name: reset | delete some files and directories
|
- name: reset | delete some files and directories
|
||||||
file:
|
file:
|
||||||
|
|
Loading…
Reference in a new issue