我正在使用Google Cloud,我正在学习Docker和Kubernetes。我设法做了所有的事情,但是当我试图访问Kubernetes-dashboard
时,我做不到。
当我点击访问仪表板->的URL时,我得到了以下错误
User "system:anonymous" cannot get services/proxy in the namespace "kube-system".: "No policy matched.\nUnknown user \"system:anonymous\""
发布于 2018-02-04 06:17:06
看起来在Kubernetes apiserver中启用了匿名身份验证。这就是为什么当你访问Dashboard时,它试图以匿名用户的身份访问。您需要禁用此功能。
使用此标志重新启动apiserver
--anonymous-auth=false
然后,您将能够使用basic-auth访问Dashboard。
https://stackoverflow.com/questions/48605143
复制