Resizing a GKE cluster.

0 votes
How do I increase the size of my GKE Cluster?
Oct 17 in GCP by anonymous
• 5,700 points
39 views

1 answer to this question.

0 votes

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.

answered Oct 17 by Sirajul
• 38,420 points

Related Questions In GCP

0 votes
1 answer

How do I determine cluster endpoints for a GKE cluster?

To determine your cluster endpoints, describe your ...READ MORE

answered Oct 30 in GCP by Sirajul
• 38,420 points
12 views
0 votes
1 answer

How to disable the Kubernetes Dashboard for a GKE cluster?

The Kubernetes Dashboard is disabled by default on ...READ MORE

answered Oct 30 in GCP by Sirajul
• 38,420 points
21 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer