User "system:serviceaccount:kube-system:default" cannot get namespaces in the namespace "default"

Last modified by matto on 2018/06/18 11:37

Helm error:

helm install ./kafka --name=kafka
Error: release kafka failed: namespaces "default" is forbidden: User "system:serviceaccount:kube-system:default" cannot get namespaces in the namespace "default"
 

solution:

kubectl create serviceaccount --namespace kube-system tiller
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account tiller --upgrade
helm update repo

Tags:
Created by matto on 2018/06/18 11:37
    
CodeGravity.com ©
Web
Analytics Made Easy - StatCounter