To determine your cluster endpoints, describe your cluster using the following commands:
gcloud container clusters describe [CLUSTER-NAME] \ --zone=[ZONE] | --region=[REGION] \ --format="get(privateClusterConfig.privateEndpoint)"
gcloud container clusters describe [CLUSTER-NAME] \ --zone=[ZONE] | --region=[REGION] \ --format="get(privateClusterConfig.publicEndpoint)"
where:
-
[CLUSTER-NAME] is the name of your cluster.
-
[ZONE] is the zone of a zonal cluster, or [REGION] is the region of a regional cluster.