Horizontal Pod Autoscaler.

Horizontal Pod Autoscaler - HPA

HorizaontalPodAutoscaler is a Kubernetes Resource that automatically scales Pod Replicas managed by a Controller. This automaic scaling is performed by Horizontal Controllers, which is enabled and configured by creating a HorizontalPodAutoscaler(HPA) Resource. The Controller periodically checks pod metrics, calculates the no. of replicas required to meet the target value configured in HPA resource and adjust/update replica field on target resource i.e. Deployment, ReplicaSet, StatefulSet, ReplicationController.

Understanding how HorizontalPodAutoscaler works

Autoscaling is split into three steps:

let’s get further into them..

obtaining pod metrics