autoscaling.v1.horizontalPodAutoscalerSpec
"specification of a horizontal pod autoscaler."
Index
fn withMaxReplicas(maxReplicas)
fn withMinReplicas(minReplicas)
fn withTargetCPUUtilizationPercentage(targetCPUUtilizationPercentage)
obj scaleTargetRef
Fields
fn withMaxReplicas
withMaxReplicas(maxReplicas)
"upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas."
fn withMinReplicas
withMinReplicas(minReplicas)
"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."
fn withTargetCPUUtilizationPercentage
withTargetCPUUtilizationPercentage(targetCPUUtilizationPercentage)
"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."
obj scaleTargetRef
"CrossVersionObjectReference contains enough information to let you identify the referred resource."
fn scaleTargetRef.withApiVersion
withApiVersion(apiVersion)
"API version of the referent"
fn scaleTargetRef.withKind
withKind(kind)
"Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"
fn scaleTargetRef.withName
withName(name)
"Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names"