Skip to content

Instantly share code, notes, and snippets.

@mingderwang
Created September 7, 2017 11:19
Show Gist options
  • Save mingderwang/aa1d05c8ba2188dbb12a5f00979858dc to your computer and use it in GitHub Desktop.
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)
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