Skip to content

Instantly share code, notes, and snippets.

@tolleiv
Created July 15, 2017 06:43
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 tolleiv/2be55752c59e288299f7e9ad5f52ef3b to your computer and use it in GitHub Desktop.
Save tolleiv/2be55752c59e288299f7e9ad5f52ef3b to your computer and use it in GitHub Desktop.
Have a service account for helm/tiller only
kubectl create serviceaccount --namespace kube-system tiller
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
kubectl patch deploy --namespace kube-system tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}'
helm init --service-account tiller --upgrade
helm list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment