mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-07-29 03:59:42 +00:00
Fix iptables rules clean during upgrade
Signed-off-by: Roberto Bonafiglia <roberto.bonafiglia@suse.com>
This commit is contained in:
committed by
Roberto Bonafiglia
parent
d069a85fcc
commit
91c5e0d75a
@@ -969,11 +969,11 @@ service_enable_and_start() {
|
||||
|
||||
if command -v iptables-save 1> /dev/null && command -v iptables-restore 1> /dev/null
|
||||
then
|
||||
$SUDO iptables-save | grep -v KUBE- | grep -v CNI- | grep -iv flannel | $SUDO iptables-restore
|
||||
$SUDO iptables-save | grep -v KUBE- | grep -iv flannel | $SUDO iptables-restore
|
||||
fi
|
||||
if command -v ip6tables-save 1> /dev/null && command -v ip6tables-restore 1> /dev/null
|
||||
then
|
||||
$SUDO ip6tables-save | grep -v KUBE- | grep -v CNI- | grep -iv flannel | $SUDO ip6tables-restore
|
||||
$SUDO ip6tables-save | grep -v KUBE- | grep -iv flannel | $SUDO ip6tables-restore
|
||||
fi
|
||||
|
||||
[ "${HAS_SYSTEMD}" = true ] && systemd_start
|
||||
|
||||
Reference in New Issue
Block a user