Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions 01-kind-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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