Skip to content

Commit

Permalink
Merge pull request #23885 from spiffxp/gate-mtu-workaround-default-on
Browse files Browse the repository at this point in the history
images/bootstrap: allow disabling mtu workaround via env var
  • Loading branch information
k8s-ci-robot authored Oct 4, 2021
2 parents 2120ddc + 6e11083 commit 881e25d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions images/bootstrap/runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,11 @@ if [[ "${DOCKER_IN_DOCKER_ENABLED}" == "true" ]]; then
echo "Done setting up docker in docker."

# https://github.com/kubernetes/test-infra/issues/23741
echo "configure iptables to set MTU"
iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
# TODO: default to false if this is proven unnecessary
if [[ "${BOOTSTRAP_MTU_WORKAROUND:-"true"}" == "true" ]]; then
echo "configure iptables to set MTU"
iptables -t mangle -A POSTROUTING -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
fi
fi

trap early_exit_handler INT TERM
Expand Down

0 comments on commit 881e25d

Please sign in to comment.