Remember the following when you increase the size of a cluster:
-
New node instances are created using the same configuration as the existing instances
-
New Pods may be scheduled onto the new instances
-
Existing Pods are not moved onto the new instances
When you increase the size of a node pool that spans multiple zones, the new size represents the number of nodes in the node pool per zone. For example, if you have a node pool of size 2 spanning two zones, the total node count is 4. If you resize the node pool to size 4, the total node count becomes 8.
To resize a cluster's node pools, run the following command:
gcloud container clusters resize [CLUSTER_NAME] --node-pool [POOL_NAME] \ --num-nodes [NUM_NODES]
where:
-
[CLUSTER_NAME] is the cluster's name.
-
[POOL_NAME] is the name of the node pool to resize.
-
[NUM_NODES] is the number of nodes to run in the pool.
Repeat this command for each node pool. If your cluster has only one node pool, omit the --node-pool flag.