Skip to content

Instantly share code, notes, and snippets.

@funollet
Created September 5, 2017 16:32
Show Gist options
  • Save funollet/d32492a388dd1bdffff00708f490e21a to your computer and use it in GitHub Desktop.
Save funollet/d32492a388dd1bdffff00708f490e21a to your computer and use it in GitHub Desktop.
$ task -l
Available tasks for this project:
* default: Install everything.
* kubernetes: Install kubectl (stable release).
* minikube: Install minikube.
* terraform: Install terraform. https://www.terraform.io
kubernetes:
desc: Install kubectl (stable release).
dir: /tmp
cmds:
- wget -nv -c {{.URL}}
- sudo install kubectl /usr/local/bin
- kubectl completion bash > k8s.completion
- sudo install -m 644 k8s.completion /etc/bash_completion.d/kubernetes
vars:
VERSION:
sh: curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt
URL: https://storage.googleapis.com/kubernetes-release/release/{{.VERSION}}/bin/linux/amd64/kubectldefault:
default:
desc: Install everything.
deps:
- kubernetes
- minikube
- terraform
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment