Soru

Zorluk: OrtaManaging Google Kubernetes Engine Resources

A DevOps team manages a Google Kubernetes Engine (GKE) Standard cluster named `prod-cluster` in zone `us-central1-a`. The team wants to ensure that unhealthy nodes in the existing node pool named `worker-pool` are automatically detected and recreated, and that the nodes automatically update to match the control plane version when upgrades occur. Which TWO commands should the cloud engineer execute to configure these operational settings?

  1. gcloud container node-pools update worker-pool --cluster=prod-cluster --zone=us-central1-a --enable-autorepairCevap
  2. gcloud container node-pools update worker-pool --cluster=prod-cluster --zone=us-central1-a --enable-autoupgradeCevap
  3. C
    gcloud container clusters update prod-cluster --zone=us-central1-a --enable-autoscaling --node-pool=worker-pool
  4. D
    kubectl edit nodepool worker-pool --set autoRepair=true,autoUpgrade=true

Cevap

Execute `gcloud container node-pools update worker-pool --cluster=prod-cluster --zone=us-central1-a --enable-autorepair` to enable automatic health monitoring and recreation, and `gcloud container node-pools update worker-pool --cluster=prod-cluster --zone=us-central1-a --enable-autoupgrade` to keep node software synchronized with control plane updates.
Enabling auto-repair (`--enable-autorepair`) instructs GKE to perform health checks on nodes in the pool and repair/recreate any that fail. Enabling auto-upgrade (`--enable-autoupgrade`) ensures nodes stay up-to-date with the cluster control plane version.

Adım Adım Çözüm

1
Identify the required node pool operational features.
Automatic node recreation requires auto-repair (`--enable-autorepair`), and automatic node version upgrades require auto-upgrade (`--enable-autoupgrade`).
These are node-pool-level management policies managed via the Google Cloud container API.
2
Select the correct management interface and syntax.
Use `gcloud container node-pools update [POOL_NAME] --cluster=[CLUSTER_NAME]` with the respective flags.
`kubectl` manages Kubernetes workload objects inside the cluster, whereas node pool infrastructure properties must be modified using `gcloud`.

Anahtar Kavram

GKE Node Pool Management (Auto-Repair and Auto-Upgrade)
Bu soruyu puanla