我正在尝试通过脚本在GCE上设置一个kubernetes集群,它总是适用于过去,但我在GCE上创建了一个新项目,我突然得到所有这些权限错误:
例:
Error from server (Forbidden): serviceaccounts is forbidden: User "client" cannot list serviceaccounts in the namespace "default": Unknown user "client"
此外,当我kubectl proxy
和打开http://localhost:8001/我得到:
{
"kind": "Status",
"apiVersion": "v1",
"metadata": {
},
"status": "Failure",
"message": "forbidden: User \"client\" cannot get path \"/\": Unknown user \"client\"",
"reason": "Forbidden",
"details": {
},
"code": 403
}
有人可以向我暗示正确的方向吗?谢谢!
what does Unknown user "client" mean?重复:
发现gcloud配置存在一些问题。这个命令解决了它:
gcloud config unset container/use_client_certificate