Soru

Zorluk: Çok zorManaging Google Kubernetes Engine Resources

A site reliability engineer needs to perform a manual blue-green node pool upgrade on a production Google Kubernetes Engine (GKE) Standard cluster to migrate workload Pods from node pool `pool-v1` to a newly provisioned node pool `pool-v2` with minimal application disruption. Sequence the required administrative steps in the correct operational order.

  1. 1Provision the new node pool `pool-v2` with the updated machine configuration using `gcloud container node-pools create`.
  2. 2Cordon all nodes in `pool-v1` using `kubectl cordon` to mark them as unschedulable.
  3. 3Drain all nodes in `pool-v1` using `kubectl drain --ignore-daemonsets` to evict existing Pods and trigger rescheduling onto `pool-v2`.
  4. 4Verify that all application Pods are healthy on `pool-v2` and delete `pool-v1` using `gcloud container node-pools delete`.

Cevap

The correct operational sequence for a manual GKE blue-green node pool migration is: 1) Provision the target node pool `pool-v2`, 2) Cordon the nodes in `pool-v1`, 3) Drain the nodes in `pool-v1`, and 4) Delete the original node pool `pool-v1` after validating workload stability.
In a manual GKE blue-green node pool update, new capacity (`pool-v2`) must be created first. The old nodes (`pool-v1`) are then cordoned to block new Pod assignments, followed by draining the old nodes to safely relocate running workloads to `pool-v2`. Once all workloads are confirmed operational on `pool-v2`, `pool-v1` can be safely deleted.

Adım Adım Çözüm

1
Create target node pool
Node pool `pool-v2` is created and nodes enter the Ready state.
Sufficient ready capacity must exist in the cluster before evicting workloads from existing nodes.
2
Cordon source nodes
Nodes in `pool-v1` are marked Unschedulable.
Ensures no new Pods are scheduled onto nodes targeted for decommissioning.
3
Drain source nodes
Pods on `pool-v1` nodes are safely evicted and rescheduled onto `pool-v2` nodes.
Gracefully migrates workload traffic to the newly created node pool in accordance with PodDisruptionBudgets.
4
Delete source node pool
Node pool `pool-v1` is deleted via gcloud CLI.
Decommissions legacy infrastructure to avoid duplicate node charges once migration is verified successful.

Anahtar Kavram

Manual Blue-Green GKE Node Pool Migration Workflow
Bu soruyu puanla