GCE和Kubernetes权限

问题描述 投票:-2回答:1

我正在尝试通过脚本在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
}

有人可以向我暗示正确的方向吗?谢谢!

kubernetes google-compute-engine
1个回答
0
投票

what does Unknown user "client" mean?重复:

发现gcloud配置存在一些问题。这个命令解决了它:

gcloud config unset container/use_client_certificate

© www.soinside.com 2019 - 2024. All rights reserved.