Created
September 16, 2019 23:05
-
-
Save daxmc99/3573e60ea338ae737ed1ae955760bb98 to your computer and use it in GitHub Desktop.
k3d local development script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#set -x | |
#set -e | |
k3d delete --name='k3s-default' | |
k3d create --workers 1 --image rancher/k3s:v0.8.1 && | |
declare -i i; i=0 | |
until k3d get-kubeconfig --name='k3s-default' | |
do | |
if (( i > 20 )); then | |
break | |
fi | |
sleep 2 | |
i+=1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment