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:
- Get your
gcloud container credentials:
gcloud container clusters get-credentials cluster_name --region region_name \ --project project_name
cluster_nameis the name of the Kubernetes cluster you created.
region_nameis the region where your cluster is located. If you set up a zonal cluster, use the parameter
--zone zone_nameinstead of
project_nameis your GCP project name.
gcloud container clusters get-credentials my-cluster --region us-central1 \ --project my-project
- 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.