diff --git a/01-kind-cluster.sh b/01-kind-cluster.sh index 3f594fb..4a33cb8 100755 --- a/01-kind-cluster.sh +++ b/01-kind-cluster.sh @@ -20,3 +20,10 @@ else echo "kind cluster already running" fi kubectl cluster-info +KINDMTU=$(docker network inspect kind | jq -r '.[] | .Options."com.docker.network.driver.mtu"') +if test $KINDMTU -gt $DOCKERMTU; then + echo -e "\e[0;31mWARNING: Found kind MTU $KINDMTU > docker0 $DOCKERMTU\e[0;0m" + echo " Consider setting { \"mtu\": $((8*($CLOUDMTU/8))) } in /etc/docker/daemon.json" + echo " and restart docker and do docker network rm kind ..." + echo "If you see ImagePullBackOff and ImagePullErrors, you now know why." +fi