HorizontalPodAutoscaler

The HorizontalPodAutoscaler automatically adjusts a Deployment's number of replicas according to a metric, most often CPU utilization, between a minimum and a maximum. It requires defined requests and a metrics server in the cluster.

Example

kubectl autoscale deployment web --min=2 --max=10 --cpu-percent=70

Related concepts

The whole glossary