Cannot access Kubernetes dashbaord from browser using Cloud

2/4/2018

I am using Google Cloud and I am learning Docker and Kubernetes. I managed to do everything but when I try to reach Kubernetes-dashboard I can't do it.

I get the following error when I hit the URL for accessing the dashboard ->

User "system:anonymous" cannot get services/proxy in the namespace "kube-system".: "No policy matched.\nUnknown user \"system:anonymous\""

-- user3745635
kubernetes
kubernetes-dashboard

1 Answer

2/4/2018

Seems like anonymous authentication is enabled in your Kubernetes apiserver. That's why when you are accessing Dashboard, its trying to access as anonymous user. You need to disable this.

Restart your apiserver with this flag

--anonymous-auth=false

Then you will be able to access Dashboard using basic-auth.

-- Mir Shahriar Sabuj
Source: StackOverflow