Package net.stickycode.kuuty.model.v18
Class IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpec
- java.lang.Object
-
- net.stickycode.kuuty.model.v18.IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpec
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2020-11-26T11:01:11.402583+13:00[Pacific/Auckland]") public class IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpec extends Object
specification of a horizontal pod autoscaler.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_MAX_REPLICASstatic StringJSON_PROPERTY_MIN_REPLICASstatic StringJSON_PROPERTY_SCALE_TARGET_REFstatic StringJSON_PROPERTY_TARGET_C_P_U_UTILIZATION_PERCENTAGE
-
Constructor Summary
Constructors Constructor Description IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpec()
-
Method Summary
-
-
-
Field Detail
-
JSON_PROPERTY_MAX_REPLICAS
public static final String JSON_PROPERTY_MAX_REPLICAS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MIN_REPLICAS
public static final String JSON_PROPERTY_MIN_REPLICAS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SCALE_TARGET_REF
public static final String JSON_PROPERTY_SCALE_TARGET_REF
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TARGET_C_P_U_UTILIZATION_PERCENTAGE
public static final String JSON_PROPERTY_TARGET_C_P_U_UTILIZATION_PERCENTAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
maxReplicas
public IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpec maxReplicas(Integer maxReplicas)
-
getMaxReplicas
public Integer getMaxReplicas()
upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.- Returns:
- maxReplicas
-
setMaxReplicas
public void setMaxReplicas(Integer maxReplicas)
-
minReplicas
public IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpec minReplicas(Integer minReplicas)
-
getMinReplicas
@Nullable public Integer 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:
- minReplicas
-
setMinReplicas
public void setMinReplicas(Integer minReplicas)
-
scaleTargetRef
public IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpec scaleTargetRef(IoK8sApiAutoscalingV1CrossVersionObjectReference scaleTargetRef)
-
getScaleTargetRef
public IoK8sApiAutoscalingV1CrossVersionObjectReference getScaleTargetRef()
Get scaleTargetRef- Returns:
- scaleTargetRef
-
setScaleTargetRef
public void setScaleTargetRef(IoK8sApiAutoscalingV1CrossVersionObjectReference scaleTargetRef)
-
targetCPUUtilizationPercentage
public IoK8sApiAutoscalingV1HorizontalPodAutoscalerSpec targetCPUUtilizationPercentage(Integer targetCPUUtilizationPercentage)
-
getTargetCPUUtilizationPercentage
@Nullable public Integer getTargetCPUUtilizationPercentage()
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:
- targetCPUUtilizationPercentage
-
setTargetCPUUtilizationPercentage
public void setTargetCPUUtilizationPercentage(Integer targetCPUUtilizationPercentage)
-
-