通过 Google Cloud 身份验证后,我能够使用
kubectl
访问我的 kubernetes 集群 gcloud auth login --cred-file=sa.json
我也安装了 gke-gcloud-auth-plugin (
gcloud components install gke-gcloud-auth-plugin
)
但是我无法使用 Lens 访问集群!我收到以下错误
我能够连接到集群,但看不到任何资源!
如果您仔细注意到错误消息,
failed to load events *** can't list resource 'evnt. in the API groups at the cluster scope requires "container.events.list"
似乎在集群级别配置了RBAC,并且您缺少container.events.list
权限。因此,我的建议是咨询集群管理员并获得所需的权限。