HPAScalingRules [api_object]ai-synthesized · conf 0.82
HPAScalingRules configures the scaling behavior for one direction via scaling Policy Rules and a configurable metric tolerance. Scaling Policy Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen. The tolerance is applied to the metric values and prevents scaling too eagerly for small metric variations.
HPAScalingRules is an API object that defines rules for scaling a HorizontalPodAutoscaler.
Why it matters It allows you to define custom scaling rules for your HPA.
Key facts - Defined in io.k8s.api.autoscaling.v2.HPAScalingRules - Used to scale a HorizontalPodAutoscaler
Related HorizontalPodAutoscaler