How do I create a GKE cluster that can autoscale when needed?

0 votes
I need to create a cluster with size 30, that is also capable of auto-scaling based on the cluster load to a maximum of 50, and a minimum of 15?
Oct 17 in GCP by Karan
• 6,060 points
21 views

1 answer to this question.

0 votes

The following command creates a cluster of size 30, with node autoscaling based on cluster load that scales the default node pool to a maximum of 50 nodes and a minimum of 15 nodes:

gcloud container clusters create [CLUSTER_NAME] --num-nodes 30 \ --enable-autoscaling --min-nodes 15 --max-nodes 50 [--zone [COMPUTE_ZONE]]

In this command:

  • --enable-autoscaling indicates that autoscaling is enabled.

  • --min-nodes specifies the minimum number of nodes for the default node pool.

  • --max-nodes specifies the maximum number of nodes for the default node pool.

  • --zone specifies the [compute zone] in which the autoscaler should create new nodes.

answered Oct 17 by Sirajul
• 39,540 points
Configuring an existing node pool to auto-scale.

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
• 39,540 points
14 views
0 votes
1 answer
0 votes
1 answer

How do I create a Virtual Machine on GCP?

To create a VM instance: It is important you ...READ MORE

answered Sep 20 in GCP by Sirajul
• 39,540 points
46 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer