0

我正在关注老师通过访问https://ip-of-container/ui连接到谷歌容器UI面板的课程,然后他被要求输入密码和用户名。谷歌容器访问UI面板

在我来说,我所看到的是:

User "system:anonymous" cannot get at the cluster scope.: "No policy matched.\nUnknown user \"system:anonymous\"" 

github says this此问题:

一种更好的方式通过API访问的UI是运行kubectl代理和 访问http://localhost:8001/ui

我不明白他想说什么。 localhost是机器端点IP的占位符吗?因为我没有服务器运行,它怎么能连接到我的本地主机?

我没跑kubectl proxy然后,

  • 尝试访问http(s)://container-endpoint-ip:8001/ui
  • 这些工作的字面http://localhost:8001/ui

无。

回答

0

我在网站的控制台上运行命令。这就是为什么它说我连接到localhost没有感觉。 Tbh它含糊不清,我只使用网站上的控制台,并忘记了我可以直接在本地机器上执行任何操作..

0

尝试运行kubectl proxy并打开http://localhost:8001/ui

+0

我只是说,在我的问题 – Ced

+0

@Ced不工作? –

+0

不,它没有工作,因为我没有在本地主机上运行任何东西。 – Ced