k8s-for-docker-desktop icon indicating copy to clipboard operation
k8s-for-docker-desktop copied to clipboard

all resources are forbidden

Open wjkhappy14 opened this issue 3 years ago • 1 comments

events is forbidden: User "system:serviceaccount:kube-system:default" cannot list resource "events" in API group "" in the namespace "default"

wjkhappy14 avatar Dec 30 '21 02:12 wjkhappy14

#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

wjkhappy14 avatar Dec 30 '21 02:12 wjkhappy14