Skip to content

Commit

Permalink
Merge pull request #166 from manuelbuil/iptables-wrapper
Browse files Browse the repository at this point in the history
Run iptables-wrapper every time the container starts
  • Loading branch information
manuelbuil authored Aug 9, 2023
2 parents 622f06b + 2fb146d commit 2408104
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

set -x

# Evaluate the iptables mode every time the container starts (fixes OS upgrades changing mode)
if [ "$1" = "kubelet" ] || [ "$1" = "kube-proxy" ]; then
update-alternatives --set iptables /usr/sbin/iptables-wrapper
fi

# generate Azure cloud provider config
if echo ${@} | grep -q "cloud-provider=azure"; then
if [ "$1" = "kubelet" ] || [ "$1" = "kube-apiserver" ] || [ "$1" = "kube-controller-manager" ]; then
Expand Down

0 comments on commit 2408104

Please sign in to comment.