From def9c996795ff577b2bb3f43fffd9d0fe40e06f3 Mon Sep 17 00:00:00 2001 From: Manuel Buil Date: Tue, 1 Feb 2022 13:02:28 +0100 Subject: [PATCH] Remove the iptables rules from ipmasq flannel Signed-off-by: Manuel Buil --- install.sh | 4 ++-- package/rpm/install.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 2059d18415..c2f10331cc 100755 --- a/install.sh +++ b/install.sh @@ -672,8 +672,8 @@ 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 +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 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 2a10b38ab3..d8653e8019 100755 --- a/package/rpm/install.sh +++ b/package/rpm/install.sh @@ -563,8 +563,8 @@ 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 +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 EOF $SUDO chmod 755 ${KILLALL_K3S_SH} $SUDO chown root:root ${KILLALL_K3S_SH}