Skip to content
Snippets Groups Projects
Commit aeb3e647 authored by riverzhang's avatar riverzhang Committed by Matthew Mosesohn
Browse files

Remove the network device created by the flannel (#2006)

* Remove the network device created by the flannel

Remove the network device created by the flannel

* Modify flannel.1 device path

Modify flannel.1 device path

* remove trailing spaces
parent fe036cbe
No related branches found
No related tags found
No related merge requests found
......@@ -150,6 +150,34 @@
- files
- dns
- name: reset | check cni network device
stat:
path: /sys/class/net/cni0
register: cni
when: kube_network_plugin == 'flannel'
tags:
- flannel
- name: reset | remove the network device created by the flannel
command: ip link del cni0
when: kube_network_plugin == 'flannel' and cni.stat.exists
tags:
- flannel
- name: reset | check flannel network device
stat:
path: /sys/class/net/flannel.1
register: flannel
when: kube_network_plugin == 'flannel'
tags:
- flannel
- name: reset | remove the network device created by the flannel
command: ip link del flannel.1
when: kube_network_plugin == 'flannel' and flannel.stat.exists
tags:
- flannel
- name: reset | Restart network
service:
name: >-
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment