lensapp / lens

Lens - The way the world runs Kubernetes
https://k8slens.dev/
MIT License
22.49k stars 1.46k forks source link

How to use lens to connect to gke ? #5900

Open tim-chen0013 opened 2 years ago

tim-chen0013 commented 2 years ago

How to use lens to connect to gke ? Where are the teaching documents?

jim-docker commented 2 years ago

For Lens to pick up your cluster its kubeconfig should be in the ~/user/.kube folder, or another that Lens is sync'ed with. If you can connect to the cluster using kubectl Lens should also be able to connect. For gke specifically try followinghttps://cloud.google.com/kubernetes-engine/docs/how-to/cluster-access-for-kubectl