Created
September 7, 2017 11:19
-
-
Save mingderwang/aa1d05c8ba2188dbb12a5f00979858dc to your computer and use it in GitHub Desktop.
Error: User "system:serviceaccount:kube-system:default" cannot list configmaps in the namespace "kube-system". (get configmaps)
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
helm list | |
Error: User "system:serviceaccount:kube-system:default" cannot list configmaps in the namespace "kube-system". (get configmaps) | |
上面错误的解决方法(k8s的rbac问题) | |
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"}}}}' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment