Kubernetes Dashboard doesn't see my master node

5/6/2020

I have one master node and look like everything ok enter image description here

But I open the dashboard ı see many errors.

enter image description here

-- user5494957
kubernetes

1 Answer

5/6/2020

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.

-- Juliano Costa
Source: StackOverflow