Last active
March 29, 2019 18:21
-
-
Save carlessanagustin/68139ce1fd5d2b4950cc1bc8f93069d6 to your computer and use it in GitHub Desktop.
Install Helm on linux-amd64- wget -O - https://goo.gl/Y7GRN4 | bash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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