本文介绍了用户“系统:匿名"无法在名称空间"kube-system"中代理服务.“未匹配任何策略." \ n未知用户"system:anonymous"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试访问集群信息中的Kubernetes仪表板时出现以下错误:

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

kubectl cluster-info

也在Chrome的隐身模式下弹出:

Also pops up in incognito mode in Chrome:

推荐答案

我可以通过运行以下命令使用本地代理访问它:

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

kubectl proxy

然后导航到 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 ).

可能与版本1.6的升级有关.

Might be related to an upgrade to version 1.6.

这篇关于用户“系统:匿名"无法在名称空间"kube-system"中代理服务.“未匹配任何策略." \ n未知用户"system:anonymous"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-17 03:51