Kubernetes/GCP GKE Aspects: Difference between revisions

From Federal Burro of Information
Jump to navigationJump to search
(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...")
 
No edit summary
Line 3: Line 3:


<pre>
<pre>
gcloud container clusters list
export CLUSTERNAME=mycluster
export CLUSTERNAME=mycluster



Revision as of 14:03, 28 April 2020

Show nodes in each node pool:


gcloud container clusters list

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