Add Google GKE clusters#
This page contains brief instructions for connecting to a Google GKE cluster.
Prerequisites#
Before you start, ensure that you have:
- Account on Google Cloud
- Project on Google Cloud
- Sufficient IAM permissions on the project
- kubectl
- Google Cloud SDK
Contact the Google Cloud administrator of your organization for details.
Steps#
-
Log in to the gcloud CLI:
gcloud auth login -
Set your Google Cloud project:
gcloud config set project <project-id> -
Get cluster credentials:
gcloud container clusters get-credentials <cluster-name> --zone <zone> --project <project-id>
After completing these steps, the GKE cluster is added to you local kubeconfig file. Then you can open Lens Desktop, and view it in Kubernetes Clusters > Local Kubeconfigs.