Configuring an existing node pool to auto-scale.

0 votes
How do I configure an existing node pool to auto-scale?
Oct 17 in GCP by anonymous
• 6,060 points
18 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 by Sirajul
• 39,540 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 in GCP by Sirajul
• 39,540 points
20 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 in GCP by Sirajul
• 39,540 points
33 views
0 votes
1 answer
0 votes
1 answer