From a6f5a4d3a5ebedd43a822a4e888911c0a2f05ccb Mon Sep 17 00:00:00 2001 From: Manuel Buil Date: Tue, 30 Aug 2022 14:30:45 +0200 Subject: [PATCH] Remove wireguard interfaces when deleting the cluster Signed-off-by: Manuel Buil --- install.sh | 2 ++ package/rpm/install.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/install.sh b/install.sh index 4f5975e78c..9af40e22be 100755 --- a/install.sh +++ b/install.sh @@ -672,6 +672,8 @@ ip link delete cni0 ip link delete flannel.1 ip link delete flannel-v6.1 ip link delete kube-ipvs0 +ip link delete flannel-wg +ip link delete flannel-wg-v6 rm -rf /var/lib/cni/ 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 diff --git a/package/rpm/install.sh b/package/rpm/install.sh index ed0b4fbba6..cdbd5f48b4 100755 --- a/package/rpm/install.sh +++ b/package/rpm/install.sh @@ -566,6 +566,8 @@ done ip link delete cni0 ip link delete flannel.1 ip link delete flannel-v6.1 +ip link delete flannel-wg +ip link delete flannel-wg-v6 ip link delete kube-ipvs0 rm -rf /var/lib/cni/ iptables-save | grep -v KUBE- | grep -v CNI- | grep -v flannel | iptables-restore