Last active
July 7, 2018 09:09
-
-
Save vsfedorenko/8c6427dc21e1d0796cc32605187fdcbf 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
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