A standard GKE cluster currently runs two node pools. You introduced a new pool with a larger machine type and want to eliminate the legacy pool named "legacy-pool" with as little application disruption as possible. You must
stop additional Pods from landing on the old nodes,
gracefully evict the running Pods so they reschedule on the new pool, and
permanently remove the legacy node pool. Which approach satisfies all requirements?
Scale the legacy-pool size to 0 replicas; GKE automatically removes the empty pool without further action.
Set autoscaler min and max for legacy-pool to 0 and immediately delete the pool; Kubernetes will evict Pods automatically.
Cordon each node in legacy-pool, drain the nodes with a grace period, then run gcloud container node-pools delete legacy-pool.
Disable the cluster autoscaler, issue gcloud container clusters update --remove-node-pool=legacy-pool, and rely on default eviction.
The recommended workflow is to first cordon the nodes so that no new Pods are scheduled on them. You then drain the nodes, which respects PodDisruptionBudgets and terminates Pods gracefully, ensuring they are rescheduled onto nodes in the remaining pool. After every node in the pool is drained you can run gcloud container node-pools delete (or use the console) to remove the node pool itself. Merely setting autoscaling limits to 0 or deleting without cordoning and draining risks new Pods being scheduled or abrupt termination, and cluster-level flags cannot delete the pool while workloads remain.
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 does it mean to cordon a node in Kubernetes?
Open an interactive chat with Bash
What is the purpose of draining a node in GKE?
Open an interactive chat with Bash
What does gcloud container node-pools delete do?
Open an interactive chat with Bash
What is 'cordoning' in GKE?
Open an interactive chat with Bash
What is the purpose of draining a node in Kubernetes?
Open an interactive chat with Bash
What is a PodDisruptionBudget (PDB) in Kubernetes?
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 .