Skip to content

Instantly share code, notes, and snippets.

@daxmc99
Created September 16, 2019 23:05
Show Gist options
  • Save daxmc99/3573e60ea338ae737ed1ae955760bb98 to your computer and use it in GitHub Desktop.
Save daxmc99/3573e60ea338ae737ed1ae955760bb98 to your computer and use it in GitHub Desktop.
k3d local development script
#!/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