Replace rancher.yourdomain.com with your Rancher URL and token-xxxxx:string with your API bearer token.
This depends on the version of curl used (especially cross operating system)
| #!/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 |
storageClass with PersistentVolumeClaims are really the way to do storage with Kubernetes.
For Azure There are 3 types of storage avalible.
It is possible to compile Go programs for a different OS, even though go build says otherwise.
You'll need:
golang-crosscompile helper script https://github.com/davecheney/golang-crosscompile| FILE SPACING: | |
| # double space a file | |
| sed G | |
| # double space a file which already has blank lines in it. Output file | |
| # should contain no more than one blank line between lines of text. | |
| sed '/^$/d;G' |
| #!/bin/bash | |
| # | |
| # Copyright 2011, Tim Branyen @tbranyen <tim@tabdeveloper.com> | |
| # Dual licensed under the MIT and GPL licenses. | |
| # | |
| # Automatically clone single or multiple repos into a folder, | |
| # great for setting up a git projects folder. | |
| # | |
| # Install: curl https://gist.github.com/raw/902154/github.sh > /usr/local/bin/gh | |
| # chmod +x /usr/local/bin/gh |