User “system:anonymous” cannot proxy services in the namespace “kube-system”.: “No policy matched.\nUnknown user \”system:anonymous\“”

走远了吗. 提交于 2019-12-08 01:38:55

问题


I am getting the following error when trying to access the Kubernetes dashboard found in the cluster info:

kubectl cluster-info

Also pops up in incognito mode in Chrome:

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


回答1:


I was able to access it with a local proxy by running:

kubectl proxy

And then navigating to http://127.0.0.1:8001/ui (http://127.0.0.1:8001/api/v1/namespaces/kube-system/services/kubernetes-dashboard/proxy/#!/workload?namespace=default).

Might be related to an upgrade to version 1.6.



来源:https://stackoverflow.com/questions/44491988/user-systemanonymous-cannot-proxy-services-in-the-namespace-kube-system

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!