Kubernetes: Is it possible to get master nodes IP/Name in GKE regional cluster

10/22/2019

As per the google GKE documentation, for regional cluster's masters and nodes are spread across multiple zones. Is there anyway in GKE to see the master nodes with which zone it is running?

I also tried kubectl cluster-info and it gives me the below result. Is that mean my cluster have only one master running ?

Kubernetes master is running at https://xx.xx.xx.xx
GLBCDefaultBackend is running at https://xx.xx.xx.xx/api/v1/namespaces/kube-system/services/default-http-backend:http/proxy
Heapster is running at https://xx.xx.xx.xx/api/v1/namespaces/kube-system/services/heapster/proxy
KubeDNS is running at https://xx.xx.xx.xx/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
Metrics-server is running at https://xx.xx.xx.xx/api/v1/namespaces/kube-system/services/https:metrics-server:/proxy
-- SShetty
google-kubernetes-engine
kubernetes

2 Answers

10/22/2019

In GKE you don't have a master per say.

GKE and EKS takes care of master node for you, this is mostly the adventage of those features instead of using AWS and GCP to just spawn a VM.

-- Spook
Source: StackOverflow

10/23/2019

Master nodes in GKE are managed by google, thus you will not be able to see them.

By default, a regional GKE cluster will create three master nodes spread across three zones.

Therefore, only a single static API endpoint is provided for the entire cluster.

The https://xx.xx.xx.xx represents your cluster API endpoint.

I invite you to visit this documentation to have an insight on how GKE operates.

-- Khalid K
Source: StackOverflow