I create a GKE cluster, i noticed that my cluster endpoint and cluster service ip is different, how is endpoint ip generated? is it by Google randomly?
what's the use of endpoint ip? now i ssh into one instance, from there ,i can use kubectl to display nodes, under which circumstances, i need to use cluster endpoint ip? and under which circumstances, i need to use cluster service ip to connect to kubernetes?
All clusters have a canonical endpoint. The endpoint exposes the Kubernetes API server that kubectl and other services use to communicate with your cluster control plane. The endpoint IP is displayed in Cloud Console under the Endpoints field of the cluster's Details tab, and in the output of gcloud container clusters describe in the endpoint field.
Cluster IP Exposes the Service on an internal IP in the cluster. Kubernetes Service is an abstraction which defines a logical set of Pods running somewhere in your cluster, that all provide the same functionality. When created, each Service is assigned a unique IP address (also called clusterIP). Service IP is completely virtual, it never hits the wire. Here are some useful links [1,2].
[1] https://cloud.google.com/kubernetes-engine/docs/how-to/cluster-access-for-kubectl
[2] https://kubernetes.io/docs/concepts/services-networking/connect-applications-service/
Hi sp2007, regarding the GKE apiserver endpoints, is there a particular CIDR range for a given region that the endpoint IP will fall within the range of?
Nope. Although we have a new front end coming in about a month which will use a new managed endpoint rather than IP per cluster.