Skip to content

Instantly share code, notes, and snippets.

@gjyoung1974
Created November 27, 2018 14:56
Show Gist options
  • Save gjyoung1974/12bb8167e976a2eeefd257d83ae65270 to your computer and use it in GitHub Desktop.
Save gjyoung1974/12bb8167e976a2eeefd257d83ae65270 to your computer and use it in GitHub Desktop.
Fix Kubernetes Helm service account
#!/bin/bash
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment