Skip to content

Commit f400f69

Browse files
committed
Louder MTU warning.
Signed-off-by: Kurt Garloff <kurt@garloff.de>
1 parent 40cd9a9 commit f400f69

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

01-kind-cluster.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ DEV=$(ip route show default | head -n1 | sed 's/^.*dev \([^ ]*\).*$/\1/')
55
CLOUDMTU=$(ip link show $DEV | head -n1 | sed 's/^.*mtu \([0-9]*\) .*$/\1/')
66
DOCKERMTU=$(ip link show docker0 | head -n1 | sed 's/^.*mtu \([0-9]*\) .*$/\1/')
77
if test $DOCKERMTU -gt $CLOUDMTU; then
8-
echo "WARNING: Consider setting mtu to $((8*($CLOUDMTU/8))) in /etc/docker/daemon.json"
8+
echo "WARNING: Consider setting { \"mtu\": $((8*($CLOUDMTU/8))) } in /etc/docker/daemon.json"
99
echo " and restart docker and do docker network rm kind ..."
1010
echo "If you see ImagePullBackOff and ImagePullErrors, you now know why."
1111
sudo ip link set dev docker0 mtu $((8*($CLOUDMTU/8)))

0 commit comments

Comments
 (0)