简体   繁体   中英

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

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

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM