Soru

Zorluk: KolayManaging Google Kubernetes Engine Resources

A system administrator is managing a web application running on a Google Kubernetes Engine (GKE) cluster. The administrator needs to ensure that the number of running Pod replicas automatically increases when application CPU utilization rises and scales down when traffic drops. Which GKE or Kubernetes feature should the administrator configure?

  1. Horizontal Pod Autoscaler (HPA)Cevap
  2. B
    Cluster Autoscaler
  3. C
    GKE Autopilot cluster mode migration
  4. D
    Spot VM node pools

Cevap

The administrator should configure the Horizontal Pod Autoscaler (HPA) to automatically scale the number of Pod replicas based on CPU utilization.
Configuring a Horizontal Pod Autoscaler (HPA) allows GKE to automatically scale the number of Pod replicas up or down depending on metric thresholds like CPU utilization.

Adım Adım Çözüm

1
Identify the workload scaling target
The goal is to scale the number of running Pod instances (workload replicas) in response to CPU load changes.
Scaling application instances horizontally requires managing the Deployment's replica count.
2
Evaluate Kubernetes scaling mechanisms
The Horizontal Pod Autoscaler (HPA) monitors metrics like target CPU utilization and increases or decreases replica count automatically.
HPA is specifically designed for workload-level horizontal scaling in GKE.

Anahtar Kavram

Horizontal Pod Autoscaler (HPA) vs Cluster Autoscaler
Bu soruyu puanla