What is the Vertical Pod Autoscaler and when do you not use it with HPA?
BeginnerScenarioResources, autoscaling and scheduling
Answer
Situation read → A team wants automatic resource tuning.
What I'd do →
- Install VPA and create a
VerticalPodAutoscalerwithupdateMode: "Off"to get recommendations - Read them with
kubectl describe vpa - Use
Autoonly for workloads that tolerate restarts - Do not let VPA and HPA both act on CPU for the same Deployment
- Consider in-place resize in recent Kubernetes versions
Why → VPA changes requests, which would feed back into HPA's utilisation maths.
Interview tip → Start with recommendation mode.
More on Resources, autoscaling and scheduling
How do you choose requests and limits for a new service?BeginnerPods are Pending with `0/6 nodes are available: 6 Insufficient cpu`. What do you do?IntermediateExplain QoS classes and which pods get evicted first.IntermediateCPU limits cause latency spikes though average usage is low. Why and what is the fix?IntermediateHow do you configure an HPA on CPU?BeginnerHPA shows `<unknown>/70%` for CPU. What do you do?Intermediate