【发布时间】:2019-02-09 03:43:55
【问题描述】:
我已经在我的 Ubuntu 虚拟机中安装并配置了 Kubernates
使用以下命令启动 kubernetes 代理
kubectl proxy --address='0.0.0.0'
当我尝试使用http://192.168.33.30:8001/ 链接从外部访问仪表板时,我可以使用本地主机上的http://localhost:8001 链接访问我的仪表板,并出现以下错误
<h3>Unauthorized</h3>
谁能帮我解决这个问题?
【问题讨论】:
-
嗨。你试过这个吗?:kubectl proxy --address='localhost' --accept-hosts='^.*$' --port=8001
-
感谢您的快速响应,它使用命令:
kubectl proxy --address='0.0.0.0' --accept-hosts='^.*$' --port=8001工作,我可以从外部访问 kubernetes 仪表板,但无法使用提供的令牌登录
标签: kubernetes kubernetes-dashboard