Reputation: 965
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\""
Upvotes: 0
Views: 196
Reputation: 13804
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.
Upvotes: 1