Register Google GKE Cluster
In case of gopaddle community edition, the installer automatically registers the local Kubernetes cluster in gopaddle. Ignore this section if you are running a community edition
In case of SaaS or Enterprise edition, this section needs to be followed to register a cluster
- Install gcloud CLI in your local environment 
- Install jq. For instance, you can install jq in Ubuntu environments, as below: 
apt update
apt install jq- Login to your Google Cloud account using gcloud command line utility. For more information check out - https://cloud.google.com/sdk/gcloud/reference/auth 
gcloud auth login- Export the KUBECONFIG environment variable and describe the GKE cluster. This writes the kubernetes configuration to the file specified in the KUBECONFIG environment variable. 
KUBECONFIG=./gke.config  gcloud container clusters describe <clustername> --zone <cluster-zone> --project <project-name> --format json | jq '.masterAuth.clusterCaCertificate'- Navigate to the Environments section. 
- Click on Add a Cluster and choose Register an existing Cluster. 
- Provide the Google GKE Cluster name. The cluster name must match the cluster name in the Google portal. 
- Choose the Cloud provider as Google. Select the Cloud Account and the Google project ID and the Regions. 

- In the Authentication Step, upload the Kubeconfig file gathered in step 2. 

- If you have configured a bastion host, provide the Bastion Host IP, SSH Pem file, SSH port 

- Click on Finish to register the GKE Cluster. 
Last updated
