Skip to content

Instantly share code, notes, and snippets.

@daxmc99
Last active January 24, 2020 01:10
Show Gist options
  • Save daxmc99/c31167cd1de736bc5a48db56f8377f15 to your computer and use it in GitHub Desktop.
Save daxmc99/c31167cd1de736bc5a48db56f8377f15 to your computer and use it in GitHub Desktop.
rioStart.sh
#!/bin/bash
#set -x
#set -e
name='rio'
k3d delete --name=$name
k3d create -n $name --image rancher/k3s:v1.0.0 --publish 80:80 --publish 443:443 --publish 9443:9443 --publish 9080:9080 \
--server-arg --no-deploy=traefik
declare -i i; i=0
until k3d get-kubeconfig --name='rio'
do
if (( i > 20 )); then
break
fi
sleep 2
i+=1
done
echo "Please export IP_ADDRESSES=127.0.0.1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment