Kubernetes HPA Generator
Generate Horizontal Pod Autoscaler configs to automatically scale your application workloads based on CPU and memory utilization.
Horizontal Pod Autoscaler (HPA) Generator
Overview
Generate Kubernetes HPA resources to automatically scale the number of Pods in a replication controller, deployment, replica set, or stateful set based on observed CPU utilization, memory utilization, or custom metrics.
Frequently Asked Questions
Does HPA work out of the box?
No, the Horizontal Pod Autoscaler requires a Metrics Server to be deployed in your cluster to collect and serve resource metrics from kubelets. Without it, the HPA will not be able to read CPU or memory usage.
Why is my HPA stuck at 'unknown' metrics?
This usually happens for two reasons: 1) The Metrics Server is not installed or crashing. 2) The target Pods do not have resource `requests` defined for the metric you are trying to scale on. HPA calculates utilization as a percentage of the requested resources.