Search code examples
kubernetesgcloud

How to retrieve node-pool size from a k8s cluster?


I couldn't find useful information from:

gcloud container clusters describe CLUSTER_NAME

or from

gcloud container node-pools describe POOL_NAME --cluster CLUSTER_NAME

It is easy to scale up/down using gcloud tool though:

gcloud container clusters resize [CLUSTER_NAME] --node-pool [POOL_NAME] \
    --size [SIZE]

But how can I know beforehand what is the size of my node-pool?


Solution

  • You should use the following command:

    gcloud container clusters describe <cluster name> --zone <zone-cluster>
    

    Check for the field currentNodeCount