Class V1HorizontalPodAutoscalerSpec
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1HorizontalPodAutoscalerSpec
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1HorizontalPodAutoscalerSpec
extends Object
specification of a horizontal pod autoscaler.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionV1HorizontalPodAutoscalerSpec(Integer maxReplicas, V1CrossVersionObjectReference scaleTargetRef) -
Method Summary
Modifier and TypeMethodDescriptionbooleanmaxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down.targetCPUUtilizationPercentage is the 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.inthashCode()maxReplicas(Integer maxReplicas) Set maxReplicas in a chainable fashion.minReplicas(Integer minReplicas) Set minReplicas in a chainable fashion.scaleTargetRef(V1CrossVersionObjectReference scaleTargetRef) Set scaleTargetRef in a chainable fashion.voidsetMaxReplicas(Integer maxReplicas) Set the maxReplicas property valuevoidsetMinReplicas(Integer minReplicas) Set the minReplicas property valuevoidsetScaleTargetRef(V1CrossVersionObjectReference scaleTargetRef) Set the scaleTargetRef property valuevoidsetTargetCPUUtilizationPercentage(Integer targetCPUUtilizationPercentage) Set the targetCPUUtilizationPercentage property valuetargetCPUUtilizationPercentage(Integer targetCPUUtilizationPercentage) Set targetCPUUtilizationPercentage in a chainable fashion.toString()
-
Field Details
-
JSON_PROPERTY_MAX_REPLICAS
- See Also:
-
JSON_PROPERTY_SCALE_TARGET_REF
- See Also:
-
JSON_PROPERTY_MIN_REPLICAS
- See Also:
-
JSON_PROPERTY_TARGET_C_P_U_UTILIZATION_PERCENTAGE
- See Also:
-
-
Constructor Details
-
V1HorizontalPodAutoscalerSpec
public V1HorizontalPodAutoscalerSpec(Integer maxReplicas, V1CrossVersionObjectReference scaleTargetRef)
-
-
Method Details
-
getMaxReplicas
maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.- Returns:
- the maxReplicas property value
-
setMaxReplicas
Set the maxReplicas property value- Parameters:
maxReplicas- property value to set
-
maxReplicas
Set maxReplicas in a chainable fashion.- Returns:
- The same instance of V1HorizontalPodAutoscalerSpec for chaining.
-
getScaleTargetRef
- Returns:
- the scaleTargetRef property value
-
setScaleTargetRef
Set the scaleTargetRef property value- Parameters:
scaleTargetRef- property value to set
-
scaleTargetRef
Set scaleTargetRef in a chainable fashion.- Returns:
- The same instance of V1HorizontalPodAutoscalerSpec for chaining.
-
getMinReplicas
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.- Returns:
- the minReplicas property value
-
setMinReplicas
Set the minReplicas property value- Parameters:
minReplicas- property value to set
-
minReplicas
Set minReplicas in a chainable fashion.- Returns:
- The same instance of V1HorizontalPodAutoscalerSpec for chaining.
-
getTargetCPUUtilizationPercentage
targetCPUUtilizationPercentage is the 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.- Returns:
- the targetCPUUtilizationPercentage property value
-
setTargetCPUUtilizationPercentage
Set the targetCPUUtilizationPercentage property value- Parameters:
targetCPUUtilizationPercentage- property value to set
-
targetCPUUtilizationPercentage
public V1HorizontalPodAutoscalerSpec targetCPUUtilizationPercentage(Integer targetCPUUtilizationPercentage) Set targetCPUUtilizationPercentage in a chainable fashion.- Returns:
- The same instance of V1HorizontalPodAutoscalerSpec for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-