Kubernetes/GCP GKE Aspects

From Federal Burro of Information
Revision as of 22:34, 27 April 2020 by David (talk | contribs) (Created page with " Show nodes in each node pool: <pre> export CLUSTERNAME=mycluster for i in `gcloud container node-pools list --cluster ${CLUSTERNAME} --region us-central1 | grep -v NAME | a...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Show nodes in each node pool:

export CLUSTERNAME=mycluster

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