Skip to content

Commit

Permalink
Update install script to clean iptables rules before start
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto Bonafiglia <[email protected]>
  • Loading branch information
rbrtbnfgl committed Apr 12, 2023
1 parent e0cd834 commit 294e0c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -967,6 +967,9 @@ service_enable_and_start() {
return
fi
$SUDO iptables-legacy-save | grep -v KUBE- | grep -v CNI- | grep -iv flannel | $SUDO iptables-legacy-restore
$SUDO ip6tables-legacy-save | grep -v KUBE- | grep -v CNI- | grep -iv flannel | $SUDO ip6tables-legacy-restore
[ "${HAS_SYSTEMD}" = true ] && systemd_start
[ "${HAS_OPENRC}" = true ] && openrc_start
return 0
Expand Down

0 comments on commit 294e0c3

Please sign in to comment.