(GKE Only) Fetch your cluster credentials

This step is for GKE only. If you are not on GKE, go to the next installation step, Deploy hybrid.

If you are on GKE, after your cluster is running you need to fetch your cluster credentials. Cluster credentials let you manage your Google Kubernetes Engine (GKE) cluster with kubectl from a local terminal window.

With your cluster credentials, you must grant cluster admin permissions to the current user. Admin permissions are required to create the necessary RBAC rules for the hybrid services.

To fetch your cluster credentials:

  1. Get your gcloud container credentials:
    gcloud container clusters get-credentials cluster_name --region region_name \
        --project project_name


    • cluster_name is the name of the Kubernetes cluster you created.
    • region_name is the region where your cluster is located. If you set up a zonal cluster, use the parameter --zone zone_name instead of --region.
    • project_name is your GCP project name.

      For example:

      gcloud container clusters get-credentials my-cluster --region us-central1 \
              --project my-project
  2. Execute the following command exactly as shown:
    kubectl create clusterrolebinding cluster-admin-binding --clusterrole=cluster-admin \
        --user=$(gcloud config get-value core/account)

    This command grants cluster admin permissions to the current user.

Next step

1 2 3 4 5 6 7 8 9 Next: Deploy 11