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, 2019 in GCP by Karan
• 19,610 points
1,261 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, 2019 by Sirajul
• 59,230 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, 2019 in GCP by Sirajul
• 59,230 points
1,554 views
0 votes
1 answer
0 votes
1 answer

How can I use a pre-existing disk as a persistent volume for a GKE cluster?

If you already have a persistent disk (say ...READ MORE

answered Nov 12, 2019 in GCP by Sirajul
• 59,230 points
2,860 views
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, 2019 in GCP by Sirajul
• 59,230 points
1,056 views
0 votes
1 answer

Monitor the resource usage in GKE cluster.

Yes, GKE usage metering tracks information about ...READ MORE

answered Oct 17, 2019 in GCP by Sirajul
• 59,230 points
1,543 views
0 votes
1 answer

How to enable the GKE usage metering?

To enable GKE usage metering, you first create ...READ MORE

answered Oct 17, 2019 in GCP by Sirajul
• 59,230 points
1,502 views
0 votes
1 answer
+1 vote
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP