Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

all resources are forbidden #183

Open
wjkhappy14 opened this issue Dec 30, 2021 · 1 comment
Open

all resources are forbidden #183

wjkhappy14 opened this issue Dec 30, 2021 · 1 comment

Comments

@wjkhappy14
Copy link

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

@wjkhappy14
Copy link
Author

#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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant