I have created a GKE cluster. I did a describe of of my cluster as below:
gcloud container clusters describe dev-gke --region=us-east4 | grep 35.245.72.197
and the output is as below:
endpoint: 35.245.72.197
publicEndpoint: 35.245.72.197
As a novice in GCP, it would be great if veterans can help me understand, what is this public endpoint for ?
As John said for other questions please open a new thread.
The master node is manage by GKE directly.
https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture#master
Here you can find more information about setting a private cluster:
https://cloud.google.com/kubernetes-engine/docs/how-to/private-clusters
https://cloud.google.com/kubernetes-engine/docs/how-to/authorized-networks
The publicEndpoint
is the external IP address of this cluster's master endpoint. The master endpoint is the IP address for the Kubernetes master node.
Note: The correct (better) command to obtain the public endpoint:
gcloud container clusters describe [CLUSTER-NAME] \
--zone=[ZONE] | --region=[REGION] \
--format="get(privateClusterConfig.publicEndpoint)"