Remove wireguard interfaces when deleting the cluster

Signed-off-by: Manuel Buil <mbuil@suse.com>
pull/6055/head
Manuel Buil 2 years ago
parent 78880a6944
commit a6f5a4d3a5

@ -672,6 +672,8 @@ ip link delete cni0
ip link delete flannel.1 ip link delete flannel.1
ip link delete flannel-v6.1 ip link delete flannel-v6.1
ip link delete kube-ipvs0 ip link delete kube-ipvs0
ip link delete flannel-wg
ip link delete flannel-wg-v6
rm -rf /var/lib/cni/ rm -rf /var/lib/cni/
iptables-save | grep -v KUBE- | grep -v CNI- | grep -v flannel | iptables-restore iptables-save | grep -v KUBE- | grep -v CNI- | grep -v flannel | iptables-restore
ip6tables-save | grep -v KUBE- | grep -v CNI- | grep -v flannel | ip6tables-restore ip6tables-save | grep -v KUBE- | grep -v CNI- | grep -v flannel | ip6tables-restore

@ -566,6 +566,8 @@ done
ip link delete cni0 ip link delete cni0
ip link delete flannel.1 ip link delete flannel.1
ip link delete flannel-v6.1 ip link delete flannel-v6.1
ip link delete flannel-wg
ip link delete flannel-wg-v6
ip link delete kube-ipvs0 ip link delete kube-ipvs0
rm -rf /var/lib/cni/ rm -rf /var/lib/cni/
iptables-save | grep -v KUBE- | grep -v CNI- | grep -v flannel | iptables-restore iptables-save | grep -v KUBE- | grep -v CNI- | grep -v flannel | iptables-restore

Loading…
Cancel
Save