Probably, you are here because you have the same error in the screenshot above.
If so, this means you installed kubernetes dashboard and you are facing this issue.
This means, you are step ahead celebrating the k8s dashboard and show it to your Boss.
But this error lets you angry
If you installed the dashboard with Helm, you just need to add these values :
rbac: clusterReadOnlyRole: true clusterAdminRole: false
If you want to grant wider access, switch the “true” and “false“.
You are a poor man. How come you install apps on top of k8s without Helm ?
- Install Helm
- Install k8s dashboard with Helm
helm install k8s-dashboard stable/kubernetes-dashboard \
-n kube-system \
values.yaml explained above.