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 Details

  • Constructor Details

  • Method Details

    • getMaxReplicas

      public Integer 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

      public void setMaxReplicas(Integer maxReplicas)
      Set the maxReplicas property value
    • maxReplicas

      public V1HorizontalPodAutoscalerSpec maxReplicas(Integer maxReplicas)
      Set maxReplicas in a chainable fashion.
      Returns:
      The same instance of V1HorizontalPodAutoscalerSpec for chaining.
    • getMinReplicas

      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:
      the minReplicas property value
    • setMinReplicas

      public void setMinReplicas(Integer minReplicas)
      Set the minReplicas property value
    • minReplicas

      public V1HorizontalPodAutoscalerSpec minReplicas(Integer minReplicas)
      Set minReplicas in a chainable fashion.
      Returns:
      The same instance of V1HorizontalPodAutoscalerSpec for chaining.
    • getScaleTargetRef

      public V1CrossVersionObjectReference getScaleTargetRef()
      Returns:
      the scaleTargetRef property value
    • setScaleTargetRef

      public void setScaleTargetRef(V1CrossVersionObjectReference scaleTargetRef)
      Set the scaleTargetRef property value
    • scaleTargetRef

      public V1HorizontalPodAutoscalerSpec scaleTargetRef(V1CrossVersionObjectReference scaleTargetRef)
      Set scaleTargetRef in a chainable fashion.
      Returns:
      The same instance of V1HorizontalPodAutoscalerSpec for chaining.
    • getTargetCPUUtilizationPercentage

      public Integer 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

      public void setTargetCPUUtilizationPercentage(Integer targetCPUUtilizationPercentage)
      Set the targetCPUUtilizationPercentage property value
    • targetCPUUtilizationPercentage

      public V1HorizontalPodAutoscalerSpec targetCPUUtilizationPercentage(Integer targetCPUUtilizationPercentage)
      Set targetCPUUtilizationPercentage in a chainable fashion.
      Returns:
      The same instance of V1HorizontalPodAutoscalerSpec for chaining.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object