Created
December 8, 2018 12:52
-
-
Save niiku-y/59f1ce3ab78bfe74f57bf4b938b5d651 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
# install_helm.sh | |
echo "setup service account tiller ..." | |
kubectl -n kube-system create serviceaccount tiller | |
kubectl -n kube-system get sa tiller -o yaml | |
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller | |
echo "" | |
echo "context : " | |
kubectl config get-contexts | |
echo "" | |
echo "config : " | |
kubectl config view | |
echo "" | |
echo "clusterrole binding : " | |
kubectl get clusterrolebinding tiller -o yaml | |
kubectl get clusterrolebindings | |
echo "" | |
echo "clusterrole : " | |
kubectl get clusterrole cluster-admin -o yaml | |
kubectl get clusterroles | |
echo "" | |
echo "service account : " | |
kubectl get serviceaccounts | |
kubectl get serviceaccounts -n kube-system | |
echo "" | |
echo "install helm ..." | |
wget https://storage.googleapis.com/kubernetes-helm/helm-v2.11.0-linux-amd64.tar.gz | |
tar -zxvf helm-v2.11.0-linux-amd64.tar.gz | |
sudo mv linux-amd64/helm /usr/local/bin/helm | |
echo "helm : " | |
which helm | |
echo "" | |
echo "helm init..." | |
helm init --service-account tiller | |
kubectl -n kube-system rollout status deploy/tiller-deploy | |
helm version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment