尝试连接到群集端点时的错误消息 [英] Error message when trying to connect to cluster endpoint
本文介绍了尝试连接到群集端点时的错误消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我尝试连接到我的Kubernetes群集端点IP时,收到此消息.有人知道这是从哪里来的吗?可能是这里的问题?
When I try to connect to my Kubernetes cluster endpoint IP, I get this message. Does anybody knows where this comes from and would could be the problem here?
{
"kind": "Status",
"apiVersion": "v1",
"metadata": {
},
"status": "Failure",
"message": "forbidden: User \"system:anonymous\" cannot get path \"/\": No policy matched.",
"reason": "Forbidden",
"details": {
},
"code": 403
}
推荐答案
您没有提供许多有关要实现的目标的信息.但是正如Konstantin已经提到的那样,只有当您尝试以未授权(匿名)用户身份访问API时,此错误才可见.
您可能已尝试以匿名用户的身份curl
API服务器.
You did not provide to many information on what you want to achieve. But as Konstantin already mentioned, this error is visible only when you try to access the API as unauthorized (anonymous) user.
You have probably tried to curl
the API server as an anonymous user.
查看全文