Configuring an existing node pool to auto-scale.

0 votes
How do I configure an existing node pool to auto-scale?
Oct 17, 2019 in GCP by anonymous
• 15,820 points
137 views

1 answer to this question.

0 votes

To enable autoscaling for an existing node pool, run the following command:

gcloud container clusters update [CLUSTER_NAME] --enable-autoscaling \ --min-nodes 1 --max-nodes 10 --zone [COMPUTE_ZONE] --node-pool default-pool

In this command:

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

  • --node-pool specifies the node pool for which autoscaling is enabled.

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

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

  • --zone specifies the cluster's [compute zone].

  • --node-pool specifies the desired node pool. If you have only one node pool, supply default-pool to this flag.

answered Oct 17, 2019 by Sirajul
• 57,870 points

Related Questions In GCP

0 votes
1 answer

Add a network interface to an existing VM.

No, you cannot add network interfaces to, ...READ MORE

answered Nov 12, 2019 in GCP by Sirajul
• 57,870 points
299 views
0 votes
1 answer
0 votes
1 answer

Connect to an instance as a root user in GCP

If you configured an instance to allow ...READ MORE

answered Sep 24, 2019 in GCP by Sirajul
• 57,870 points
778 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
• 57,870 points
211 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
• 57,870 points
497 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer