An application deployed on a Google Kubernetes Engine (GKE) cluster experiences fluctuating user traffic throughout the day. You need to ensure that the number of Pod replicas automatically increases or decreases based on CPU utilization metrics. Which Kubernetes object should you configure?
- Horizontal Pod Autoscaler (HPA)Answer
- BCluster Autoscaler
- CGKE Autopilot Mode
- DSpot VM Node Pool auto-provisioning
Answer
Configure a Horizontal Pod Autoscaler (HPA) to scale the number of Pod replicas based on CPU utilization.
The Horizontal Pod Autoscaler (HPA) is the standard Kubernetes resource designed to scale the number of Pod replicas in a deployment, replica set, or stateful set based on resource metrics like CPU utilization.
Step-by-Step Solution
Key Concept
Managing Workload Scaling with Horizontal Pod Autoscaler vs Node-level Cluster Autoscaler in GKE
Estimated Time:45s