Horizontal Pod Autoscaler (HPA) পর্যবেক্ষিত metric (CPU, memory, বা custom)-এর ভিত্তিতে Pod replica যোগ বা অপসারণ করে। Cluster Autoscaler (CA) node যোগ বা অপসারণ করে যখন Pod schedule করা যায় না বা node কম ব্যবহৃত হয়। এরা ভিন্ন স্তরে কাজ করে এবং একসাথে কাজ করে।
দুটি autoscaler, দুটি স্তর
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.
