Horizontal Pod Autoscaler (HPA) અવલોકિત metrics (CPU, memory, કે custom) ના આધારે Pod replicas ઉમેરે કે દૂર કરે છે. Cluster Autoscaler (CA) જ્યારે Pods schedule ન થઈ શકે કે nodes ઓછા વપરાય ત્યારે nodes ઉમેરે કે દૂર કરે છે. તેઓ અલગ સ્તરે કામ કરે છે અને સાથે મળીને કામ કરે છે.
બે autoscalers, બે સ્તરો
HPA → scales PODS (more/fewer replicas of a Deployment) — reacts to LOAD
CA → scales NODES (grows/shrinks the cluster's machines) — reacts to PENDING Pods
VPA → (bonus) adjusts a Pod's requests/limits — reacts to right-sizing
Typical flow: load rises → HPA adds Pods → Pods can't fit → CA adds a node →
Pods schedule. Load drops → HPA removes Pods → node idle → CA removes it.
