mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Merge pull request #4973 from manuelbuil/delete-ip6tables
Remove ip6table rules when cleaning up k3s
This commit is contained in:
commit
01388fee2d
@ -673,6 +673,7 @@ ip link delete flannel.1
|
|||||||
ip link delete flannel-v6.1
|
ip link delete flannel-v6.1
|
||||||
rm -rf /var/lib/cni/
|
rm -rf /var/lib/cni/
|
||||||
iptables-save | grep -v KUBE- | grep -v CNI- | iptables-restore
|
iptables-save | grep -v KUBE- | grep -v CNI- | iptables-restore
|
||||||
|
ip6tables-save | grep -v KUBE- | grep -v CNI- | ip6tables-restore
|
||||||
EOF
|
EOF
|
||||||
$SUDO chmod 755 ${KILLALL_K3S_SH}
|
$SUDO chmod 755 ${KILLALL_K3S_SH}
|
||||||
$SUDO chown root:root ${KILLALL_K3S_SH}
|
$SUDO chown root:root ${KILLALL_K3S_SH}
|
||||||
|
@ -561,8 +561,10 @@ ip link show 2>/dev/null | grep 'master cni0' | while read ignore iface ignore;
|
|||||||
done
|
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
|
||||||
rm -rf /var/lib/cni/
|
rm -rf /var/lib/cni/
|
||||||
iptables-save | grep -v KUBE- | grep -v CNI- | iptables-restore
|
iptables-save | grep -v KUBE- | grep -v CNI- | iptables-restore
|
||||||
|
ip6tables-save | grep -v KUBE- | grep -v CNI- | ip6tables-restore
|
||||||
EOF
|
EOF
|
||||||
$SUDO chmod 755 ${KILLALL_K3S_SH}
|
$SUDO chmod 755 ${KILLALL_K3S_SH}
|
||||||
$SUDO chown root:root ${KILLALL_K3S_SH}
|
$SUDO chown root:root ${KILLALL_K3S_SH}
|
||||||
|
Loading…
Reference in New Issue
Block a user