From 66780cc665623f268889cf86ff6cba46d395b7c6 Mon Sep 17 00:00:00 2001 From: Manuel Buil Date: Tue, 18 Jan 2022 08:36:00 +0100 Subject: [PATCH] Remove ip6table rules when cleaning up k3s Signed-off-by: Manuel Buil --- install.sh | 1 + package/rpm/install.sh | 2 ++ 2 files changed, 3 insertions(+) diff --git a/install.sh b/install.sh index 31354b643a..2059d18415 100755 --- a/install.sh +++ b/install.sh @@ -673,6 +673,7 @@ ip link delete flannel.1 ip link delete flannel-v6.1 rm -rf /var/lib/cni/ iptables-save | grep -v KUBE- | grep -v CNI- | iptables-restore +ip6tables-save | grep -v KUBE- | grep -v CNI- | ip6tables-restore EOF $SUDO chmod 755 ${KILLALL_K3S_SH} $SUDO chown root:root ${KILLALL_K3S_SH} diff --git a/package/rpm/install.sh b/package/rpm/install.sh index d2c9c5d069..2a10b38ab3 100755 --- a/package/rpm/install.sh +++ b/package/rpm/install.sh @@ -561,8 +561,10 @@ ip link show 2>/dev/null | grep 'master cni0' | while read ignore iface ignore; done ip link delete cni0 ip link delete flannel.1 +ip link delete flannel-v6.1 rm -rf /var/lib/cni/ iptables-save | grep -v KUBE- | grep -v CNI- | iptables-restore +ip6tables-save | grep -v KUBE- | grep -v CNI- | ip6tables-restore EOF $SUDO chmod 755 ${KILLALL_K3S_SH} $SUDO chown root:root ${KILLALL_K3S_SH}