Skip to content

horizontalPodAutoscaler

HorizontalPodAutoscaler configuration for this controller. Only supported for deployment and statefulset types. See https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/ for details.

object

PropertyTypeRequiredDefaultDescription
annotationsobject / nullNo-Annotations to set on the item.
behaviorobjectNo-Scaling behavior configuration. Passed through directly t…
labelsobject / nullNo-Labels to set on the item.
maxReplicasintegerYes-Maximum number of replicas.
metricsarrayNo-Metrics to use for scaling. Passed through directly to th…
minReplicasinteger / nullNo-Minimum number of replicas. Set to 0 to enable scale-to-z…

Scaling behavior configuration. Passed through directly to the autoscaling/v2 HPA spec.

Metrics to use for scaling. Passed through directly to the autoscaling/v2 HPA spec.

Minimum number of replicas. Set to 0 to enable scale-to-zero when the HPAScaleToZero feature gate is enabled.