A GKE Standard cluster named "prod-cluster" in region us-central1 has a node pool called "web-pool" that currently runs a fixed size of 3 e2-standard-4 nodes. The operations team wants to let the pool scale between 5 and 10 nodes during traffic spikes while keeping costs low during quiet periods. They want to apply the change without recreating the cluster or replacing the node pool. Which gcloud command meets the requirement?
The existing node pool can be re-configured in place by enabling autoscaling and setting new boundaries with the gcloud container node-pools update command. Supplying the --enable-autoscaling flag together with --min-nodes and --max-nodes adjusts the pool's autoscaler settings without deleting or recreating any nodes. Using gcloud container clusters resize only sets a fixed node count and disables autoscaling, while creating a new pool or updating the cluster's default size does not modify the existing web-pool. Therefore, updating the node pool with autoscaling parameters is the correct approach.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is GKE (Google Kubernetes Engine)?
Open an interactive chat with Bash
What does autoscaling do in GKE, and how does it work for node pools?
Open an interactive chat with Bash
What is the difference between resizing and updating a node pool in GKE?
Open an interactive chat with Bash
What is a GKE node pool?
Open an interactive chat with Bash
How does autoscaling work in GKE?
Open an interactive chat with Bash
What does the '--enable-autoscaling' flag do when updating a node pool?
Open an interactive chat with Bash
GCP Associate Cloud Engineer
Ensuring successful operation of a cloud solution
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99 $11.99
$11.99/mo
Billed monthly, Cancel any time.
$19.99 after promotion ends
3 Month Pass
$44.99 $26.99
$8.99/mo
One time purchase of $26.99, Does not auto-renew.
$44.99 after promotion ends
Save $18!
MOST POPULAR
Annual Pass
$119.99 $71.99
$5.99/mo
One time purchase of $71.99, Does not auto-renew.
$119.99 after promotion ends
Save $48!
BEST DEAL
Lifetime Pass
$189.99 $113.99
One time purchase, Good for life.
Save $76!
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .