mirror of https://github.com/k3s-io/k3s.git
Update install script to clean iptables rules before start
Signed-off-by: Roberto Bonafiglia <roberto.bonafiglia@suse.com>
This commit is contained in:
parent
99c61de027
commit
61aef1cc48
|
@ -898,6 +898,9 @@ service_enable_and_start() {
|
|||
return
|
||||
fi
|
||||
|
||||
$SUDO iptables-save | grep -v KUBE- | grep -v CNI- | grep -iv flannel | $SUDO iptables-restore
|
||||
$SUDO ip6tables-save | grep -v KUBE- | grep -v CNI- | grep -iv flannel | $SUDO ip6tables-restore
|
||||
|
||||
[ "${HAS_SYSTEMD}" = true ] && systemd_start
|
||||
[ "${HAS_OPENRC}" = true ] && openrc_start
|
||||
return 0
|
||||
|
|
Loading…
Reference in New Issue