all resources are forbidden
wjkhappy14 opened this issue · 1 comments
wjkhappy14 commented
events is forbidden: User "system:serviceaccount:kube-system:default" cannot list resource "events" in API group "" in the namespace "default"
wjkhappy14 commented
#view serviceaccount
kubectl get serviceaccount -n kubernetes-dashboard
#delete clusterrolebinding
kubectl delete clusterrolebinding kubernetes-dashboard
#create clusterrolebinding
kubectl create clusterrolebinding serviceaccount-cluster-admin --clusterrole=cluster-admin --user=system:serviceaccount:kubernetes-dashboard:kubernetes-dashboard
#get token
kubectl describe secrets -n kubernetes-dashboard