Horizontal Pod Autoscaler Spec
data class HorizontalPodAutoscalerSpec(val maxReplicas: Int, val minReplicas: Int? = null, val scaleTargetRef: CrossVersionObjectReference, val targetCPUUtilizationPercentage: Int? = null)
specification of a horizontal pod autoscaler.
Constructors
Link copied to clipboard
fun HorizontalPodAutoscalerSpec(maxReplicas: Int, minReplicas: Int? = null, scaleTargetRef: CrossVersionObjectReference, targetCPUUtilizationPercentage: Int? = null)
Types
Properties
Link copied to clipboard
minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.