user5494957
user5494957

Reputation: 1

Kubernetes Dashboard doesn't see my master node

I have one master node, and it looks like everything ok.

enter image description here

But I open the dashboard and I see many errors.

enter image description here

Upvotes: 0

Views: 250

Answers (1)

Juliano Costa
Juliano Costa

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

Related Questions