Skip to content

Instantly share code, notes, and snippets.

@vsfedorenko
Last active July 7, 2018 09:09
Show Gist options
  • Save vsfedorenko/8c6427dc21e1d0796cc32605187fdcbf to your computer and use it in GitHub Desktop.
Save vsfedorenko/8c6427dc21e1d0796cc32605187fdcbf to your computer and use it in GitHub Desktop.
To fix this error:
release cicd failed: namespaces "default" is forbidden: User "system:serviceaccount:kube-system:default" cannot get namespaces in the namespace "default": Unknown user "system:serviceaccount:kube-system:default"
Use these commands:
$ kubectl create serviceaccount --namespace kube-system tiller
serviceaccount "tiller" created
$ kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
clusterrolebinding "tiller-cluster-rule" created
$ kubectl patch deploy --namespace kube-system tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}'
deployment "tiller-deploy" patched
Then run below to check it :
$ helm list
$ helm repo update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment