Kubernetes/GCP GKE Aspects

From Federal Burro of Information
Revision as of 14:07, 28 April 2020 by David (talk | contribs)
Jump to navigationJump to search

Show nodes in each node pool:


gcloud container clusters list

export CLUSTERNAME=mycluster
export LOCATION=us-central1

for i in `gcloud container node-pools list --cluster ${CLUSTERNAME} --region ${LOCATION} | grep -v NAME | awk '{print $1}'`
 do
 echo $i ;
 kubectl get node -l cloud.google.com/gke-nodepool=$i
 done