Question

Difficulty: MediumManaging Google Kubernetes Engine Resources

An infrastructure administrator needs to optimize a Google Kubernetes Engine (GKE) Standard cluster to handle fluctuating workload demands while maintaining application availability during node upgrades. The workload requires custom node OS kernel parameters. Which TWO configurations must the administrator implement? (Select TWO)

  1. Enable the Cluster Autoscaler on the GKE node pool using gcloud container node-pools update with --enable-autoscaling, --min-nodes, and --max-nodes flags.Answer
  2. Specify CPU and memory resource requests in the Pod manifests and configure a Pod Disruption Budget (PDB) for the deployment.Answer
  3. C
    Configure a Horizontal Pod Autoscaler (HPA) to automatically add or remove Compute Engine worker nodes when CPU utilization breaches target thresholds.
  4. D
    Migrate the cluster to GKE Autopilot mode to eliminate node management overhead while retaining custom node OS kernel configuration privileges.

Answer

The administrator must enable Cluster Autoscaler on the GKE node pool using gcloud container node-pools update, and specify Pod resource requests alongside a Pod Disruption Budget.
Enabling Cluster Autoscaler on the GKE node pool ensures worker nodes scale according to demand. Setting explicit Pod resource requests is required for Cluster Autoscaler to identify pending Pods, and establishing a Pod Disruption Budget guarantees workload availability during node updates. GKE Standard must be retained because custom node OS kernel tuning is disallowed in GKE Autopilot.

Step-by-Step Solution

1
Configure node pool autoscaling via gcloud CLI
Worker nodes scale up or down automatically based on unschedulable Pods and resource usage.
Cluster Autoscaler operates on GKE node pools to resize compute capacity.
2
Define Pod resource requests and Pod Disruption Budgets
Cluster Autoscaler detects pending Pods triggered by explicit resource requests, while PDBs enforce minimum availability during node maintenance.
Without resource requests Cluster Autoscaler cannot evaluate pending Pod demand, and without PDBs node maintenance can cause unexpected downtime.

Key Concept

Managing GKE Cluster Autoscaler, Pod Resource Requests, and Pod Disruption Budgets
Estimated Time:1m 30s
Rate this question