Soru

Zorluk: OrtaManaging Google Kubernetes Engine Resources

A DevOps engineer is managing a stateless microservice deployed on a Google Kubernetes Engine (GKE) Standard cluster. The application experiences unpredictable traffic surges. You must configure scaling so that the microservice automatically increases its pod count when average CPU utilization exceeds 75%75\%, and the underlying cluster automatically adds worker nodes whenever pods cannot be scheduled due to insufficient CPU capacity. Which TWO actions should you perform to meet these requirements?

  1. Create a Horizontal Pod Autoscaler (HPA) resource targeting the deployment with a target CPU utilization of 75%75\%.Cevap
  2. Enable the Cluster Autoscaler on the GKE node pool so new nodes are provisioned when pods are in a Pending state due to resource constraints.Cevap
  3. C
    Configure Cluster Autoscaler to monitor pod CPU usage thresholds and trigger pod replica scaling within existing nodes.
  4. D
    Provision a GKE Autopilot cluster with fixed node pool limits and disable Horizontal Pod Autoscaler to guarantee zero node management overhead for custom kernel modules.

Cevap

To handle both workload replica scaling and underlying node infrastructure scaling, create a Horizontal Pod Autoscaler targeting the deployment to manage pod counts based on CPU usage, and enable Cluster Autoscaler on the GKE node pool to manage node capacity when pods are pending.
Proper GKE scaling requires combining Horizontal Pod Autoscaler (HPA) to scale pod replicas based on workload metrics like CPU usage, and Cluster Autoscaler to expand node pool capacity when unschedulable pods are in a Pending state due to resource deficits.

Adım Adım Çözüm

1
Identify the mechanism required for pod-level scaling based on CPU utilization.
Select the Horizontal Pod Autoscaler (HPA) configuration targeting the microservice deployment.
HPA adjusts pod replica counts in response to workload metrics such as CPU utilization reaching 75%75\%.
2
Identify the mechanism required for node-level capacity expansion when pods cannot be scheduled.
Enable Cluster Autoscaler on the GKE cluster node pool.
Cluster Autoscaler monitors for pods in a Pending state due to insufficient cluster resources and adds compute nodes to accommodate them.

Anahtar Kavram

Differentiating Horizontal Pod Autoscaler (HPA) for pod workload scaling and Cluster Autoscaler for node infrastructure scaling in GKE.
Bu soruyu puanla