Reputation: 1
I have one master node, and it looks like everything ok.
But I open the dashboard and I see many errors.
Upvotes: 0
Views: 250
Reputation: 2733
The system:anonymous is not authorized to perform the list actions within your cluster.
You can solve this case in 2 ways:
1 - Using RBAC Authorization, described in k8s documentation here.
2 - A NOT recommended way is explained in this GitHub thread:
kubectl create clusterrolebinding cluster-system-anonymous --clusterrole=dont-do-this --user=system:anonymous
At the end of the GitHub thread, the Kubernetes team explains why this is not a recommended approach:
[...] granting anonymous clients full access to the Kubernetes API [...] should not be considered as solutions to permission issues
But if you are not in Production and would like to check if it works first, that can help. You can double check and create the proper Cluster Role and Cluster Role Binding afterwards.
Upvotes: 1