Skip to content

Instantly share code, notes, and snippets.

@carlessanagustin
Last active March 29, 2019 18:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carlessanagustin/68139ce1fd5d2b4950cc1bc8f93069d6 to your computer and use it in GitHub Desktop.
Save carlessanagustin/68139ce1fd5d2b4950cc1bc8f93069d6 to your computer and use it in GitHub Desktop.
Install Helm on linux-amd64- wget -O - https://goo.gl/Y7GRN4 | bash
#!/usr/bin/env bash
VERSION=v2.13.1
helm_install(){
wget https://storage.googleapis.com/kubernetes-helm/helm-$VERSION-linux-amd64.tar.gz
tar zxvf helm-$VERSION-linux-amd64.tar.gz
sudo mv linux-amd64/helm /usr/local/bin/
}
helm_setup(){
kubectl -n kube-system create serviceaccount tiller
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account=tiller --upgrade
}
helm_bash(){
source <(helm completion bash)
echo "source <(helm completion bash)" >> ~/.bashrc
}
helm_delete() {
kubectl -n kube-system delete deployment tiller-deploy
kubectl delete clusterrolebinding tiller
kubectl -n kube-system delete serviceaccount tiller
}
helm_install
helm_setup
helm_bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment