Configure Lens with GKE cluster - gke_gcloud_auth_plugin issue

44 views Asked by At

I was able to access my kubernetes cluster using kubectl after authenticating to Google Cloud gcloud auth login --cred-file=sa.json

I installed gke-gcloud-auth-plugin too (gcloud components install gke-gcloud-auth-plugin)

However I wasn't able to access the cluster with Lens ! I got the following error

enter image description here

I was able to connect to the cluster, but I can't see any resource !

1

There are 1 answers

3
Nani On

if you noticed the error message carefully failed to load events *** can't list resource 'evnt. in the API groups at the cluster scope requires "container.events.list" seems there is an RBAC configured at cluster level, and you lack acontainer.events.list permission. Therefore, my advice would be to check with the cluster admin and get the required permission.

Authorize actions in clusters using role-based access control