Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface HorizontalPodAutoscalerSpec

specification of a horizontal pod autoscaler.

schema

io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec

Hierarchy

  • HorizontalPodAutoscalerSpec

Index

Properties

Readonly maxReplicas

maxReplicas: number

upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.

schema

io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec#maxReplicas

Optional Readonly minReplicas

minReplicas: number

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.

schema

io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec#minReplicas

Readonly scaleTargetRef

reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource.

schema

io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec#scaleTargetRef

Optional Readonly targetCpuUtilizationPercentage

targetCpuUtilizationPercentage: number

target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used.

schema

io.k8s.api.autoscaling.v1.HorizontalPodAutoscalerSpec#targetCPUUtilizationPercentage

Generated using TypeDoc