HorizontalPodAutoscaler
The Kubernetes object that raises or lowers a workload's replica count automatically to keep a metric, such as CPU use, near a target.
In more detail
It needs working metrics, usually from Metrics Server, and CPU targets are measured as a percentage of each pod's request, so pods without requests cannot be scaled on CPU. It changes the replica count only; the cluster still needs room to place the new pods. Minimum and maximum replicas bound its decisions.
Related terms
- Metrics Server — A cluster add-on that collects current CPU and memory use from every kubelet so kubectl top and the autoscaler can read it.
- replicas — The number of identical pod copies a controller should keep running, set in the replicas field.
- resource request — The amount of CPU and memory a container says it needs, which the scheduler reserves on a node before placing the pod.
- autoscaling — A cloud feature that automatically adds servers when demand rises and removes them when it falls.
Taught in
- Health, Reconciliation And Fields Argo CD Should Ignore — Certified Argo Project Associate (CAPA) Exam Prep
- Self-Healing And Autoscaling: Who Restarts, Who Replaces, Who Adds — Certified Kubernetes Administrator (CKA) Exam Prep
- API Deprecations And Migrations — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Choosing Compute — Google Cloud Associate Cloud Engineer Exam Prep
- Compute Engine — Google Cloud Associate Cloud Engineer Exam Prep
- Running GKE — Google Cloud Associate Cloud Engineer Exam Prep
- Running The Network — Google Cloud Associate Cloud Engineer Exam Prep
- Six Times The Traffic: Autoscaling Pods And Nodes — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Who Decides What Ships: The CNCF And Its Community — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Architecture Sprint: The Refunds Review — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- The Festival, End To End: Final Review — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Threat Model Sprint: Name It, Then Stop It — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Requests, Limits, Quotas And Horizontal Autoscaling — Kubernetes: Production-Grade Container Orchestration
- Taints, Tolerations And Disruption Budgets — Kubernetes: Production-Grade Container Orchestration
- Troubleshooting: Pending Pod Triage — Kubernetes: Production-Grade Container Orchestration
References
Certification courses
- CAPA course and practice exam: Certified Argo Project Associate
- CKA course and practice exam: Certified Kubernetes Administrator
- CKAD course and practice exam: Certified Kubernetes Application Developer
- Google Associate Cloud Engineer course and practice exam: Google Cloud certification
- KCNA course and practice exam: Kubernetes and Cloud Native Associate
- KCSA course and practice exam: Kubernetes and Cloud Native Security Associate