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
apt install jq
gcloud auth login
- 4.Describe the GKE cluster and get the Cluster CA Certificate.
gcloud container clusters describe <clustername> --zone <cluster-zone> --project <project-name> --format json | jq '.masterAuth.clusterCaCertificate'
- 5.Edit the Kubeconfig file below by replacing the values gathered in the previous step.
- name: gke_<project>_<zone>_<clustername>
If you don't have a Bastion Host setup, and if the
servervalue in the Kubeconfig points to a private IP address:
a) Replace the
servervalue to a publicly accessible Cluster Master API Endpoint
b) Make sure the firewall is open for the Cluster Master API port
c) Make sure the Cluster certificate is attached to the Public IP. Here is an example of how to update the certSANs with the public IP. - https://blog.scottlowe.org/2019/07/30/adding-a-name-to-kubernetes-api-server-certificate/
- 5.Navigate to the Environments section.
- 6.Click on Add a Cluster and choose Register an existing Cluster.
- 7.Provide the Google GKE Cluster name. The cluster name must match the cluster name in the Google portal.
- 8.Choose the Cloud provider as Google. Select the Cloud Account and the Google project ID and the Regions.
- 9.In the Authentication Step, upload the Kubeconfig file gathered in step 2.
Upload the Kubeconfig file
- 10.If you have configured a bastion host, provide the Bastion Host IP, SSH Pem file, SSH port
If you are using a Bastion Host setup, make sure the Bastion Host IP and Port are accessible publicly. If you are looking for a private only setup, get in touch with us to explore gopaddle Enterprises.
Provide the Bastion Host Connection Details
- 11.Click on Finish to register the GKE Cluster.