KCNA · Question #78
How does Horizontal Pod autoscaling work in Kubernetes?
The correct answer is D. The Horizontal Pod Autoscaler controller adds more pods when the load is above the configured. The Horizontal Pod Autoscaler (HPA) automatically adjusts the number of pod replicas in a Deployment or ReplicaSet up or down based on observed metrics like CPU utilization or custom metrics.
Question
How does Horizontal Pod autoscaling work in Kubernetes?
Options
- AThe Horizontal Pod Autoscaler controller adds more CPU or memory to the pods when the load is
- BThe Horizontal Pod Autoscaler controller adds more pods when the load is above the configured
- CThe Horizontal Pod Autoscaler controller adds more pods to the specified DaemonSet when the
- DThe Horizontal Pod Autoscaler controller adds more pods when the load is above the configured
How the community answered
(30 responses)- A7% (2)
- C3% (1)
- D90% (27)
Why each option
The Horizontal Pod Autoscaler (HPA) automatically adjusts the number of pod replicas in a Deployment or ReplicaSet up or down based on observed metrics like CPU utilization or custom metrics.
Adding more CPU or memory to existing pods is vertical autoscaling, not horizontal autoscaling.
The Horizontal Pod Autoscaler scales Deployments, ReplicaSets, and StatefulSets, not DaemonSets, which are designed to run one pod per node regardless of load.
The Horizontal Pod Autoscaler scales Deployments, ReplicaSets, and StatefulSets, not DaemonSets, which are designed to run one pod per node regardless of load.
The Horizontal Pod Autoscaler (HPA) controller continuously monitors resource utilization (such as CPU or memory) or other custom metrics for a workload and automatically increases or decreases the number of pods to meet demand, ensuring efficient resource usage and application responsiveness.
Concept tested: Horizontal Pod Autoscaler (HPA)
Source: https://kubernetes.io/docs/concepts/workloads/controllers/horizontal-pod-autoscaler/
Topics
Community Discussion
No community discussion yet for this question.