Skip to content

Instantly share code, notes, and snippets.

@soolaugust
Created April 14, 2020 03:38
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save soolaugust/90baebb087371c70d4aac8991f732604 to your computer and use it in GitHub Desktop.
User "system:serviceaccount:kube-system:default" cannot get resource "namespaces" in API group "" in the namespace "default"

see: helm/helm#3130

helm init --upgrade --service-account tiller

or

kubectl --namespace kube-system create serviceaccount tiller

kubectl create clusterrolebinding tiller-cluster-rule \
 --clusterrole=cluster-admin --serviceaccount=kube-system:tiller

kubectl --namespace kube-system patch deploy tiller-deploy \
 -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}' 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment