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
Properties
Section titled “Properties”| Property | Type | Required | Default | Description |
|---|---|---|---|---|
annotations | object / null | No | - | Annotations to set on the item. |
behavior | object | No | - | Scaling behavior configuration. Passed through directly t… |
labels | object / null | No | - | Labels to set on the item. |
maxReplicas | integer | Yes | - | Maximum number of replicas. |
metrics | array | No | - | Metrics to use for scaling. Passed through directly to th… |
minReplicas | integer / null | No | - | Minimum number of replicas. Set to 0 to enable scale-to-z… |
Property Details
Section titled “Property Details”behavior
Section titled “behavior”Scaling behavior configuration. Passed through directly to the autoscaling/v2 HPA spec.
metrics
Section titled “metrics”Metrics to use for scaling. Passed through directly to the autoscaling/v2 HPA spec.
minReplicas
Section titled “minReplicas”Minimum number of replicas. Set to 0 to enable scale-to-zero when the HPAScaleToZero feature gate is enabled.