Interface V2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
V2beta2Autoscaling.HorizontalPodAutoscalerSpec, V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder
Enclosing class:
V2beta2Autoscaling

public static interface V2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    behavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).
    behavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).
    int
    maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up.
    getMetrics(int index)
    metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used).
    int
    metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used).
    metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used).
    metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used).
    metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used).
    int
    minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down.
    scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count.
    scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count.
    boolean
    behavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).
    boolean
    maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up.
    boolean
    minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down.
    boolean
    scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • hasScaleTargetRef

      boolean hasScaleTargetRef()
       scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics
       should be collected, as well as to actually change the replica count.
       
      optional .k8s.io.api.autoscaling.v2beta2.CrossVersionObjectReference scaleTargetRef = 1;
    • getScaleTargetRef

       scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics
       should be collected, as well as to actually change the replica count.
       
      optional .k8s.io.api.autoscaling.v2beta2.CrossVersionObjectReference scaleTargetRef = 1;
    • getScaleTargetRefOrBuilder

       scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics
       should be collected, as well as to actually change the replica count.
       
      optional .k8s.io.api.autoscaling.v2beta2.CrossVersionObjectReference scaleTargetRef = 1;
    • hasMinReplicas

      boolean hasMinReplicas()
       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.
       +optional
       
      optional int32 minReplicas = 2;
    • getMinReplicas

      int 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.
       +optional
       
      optional int32 minReplicas = 2;
    • hasMaxReplicas

      boolean hasMaxReplicas()
       maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up.
       It cannot be less that minReplicas.
       
      optional int32 maxReplicas = 3;
    • getMaxReplicas

      int getMaxReplicas()
       maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up.
       It cannot be less that minReplicas.
       
      optional int32 maxReplicas = 3;
    • getMetricsList

       metrics contains the specifications for which to use to calculate the
       desired replica count (the maximum replica count across all metrics will
       be used).  The desired replica count is calculated multiplying the
       ratio between the target value and the current value by the current
       number of pods.  Ergo, metrics used must decrease as the pod count is
       increased, and vice-versa.  See the individual metric source types for
       more information about how each type of metric must respond.
       If not set, the default metric will be set to 80% average CPU utilization.
       +optional
       
      repeated .k8s.io.api.autoscaling.v2beta2.MetricSpec metrics = 4;
    • getMetrics

      V2beta2Autoscaling.MetricSpec getMetrics(int index)
       metrics contains the specifications for which to use to calculate the
       desired replica count (the maximum replica count across all metrics will
       be used).  The desired replica count is calculated multiplying the
       ratio between the target value and the current value by the current
       number of pods.  Ergo, metrics used must decrease as the pod count is
       increased, and vice-versa.  See the individual metric source types for
       more information about how each type of metric must respond.
       If not set, the default metric will be set to 80% average CPU utilization.
       +optional
       
      repeated .k8s.io.api.autoscaling.v2beta2.MetricSpec metrics = 4;
    • getMetricsCount

      int getMetricsCount()
       metrics contains the specifications for which to use to calculate the
       desired replica count (the maximum replica count across all metrics will
       be used).  The desired replica count is calculated multiplying the
       ratio between the target value and the current value by the current
       number of pods.  Ergo, metrics used must decrease as the pod count is
       increased, and vice-versa.  See the individual metric source types for
       more information about how each type of metric must respond.
       If not set, the default metric will be set to 80% average CPU utilization.
       +optional
       
      repeated .k8s.io.api.autoscaling.v2beta2.MetricSpec metrics = 4;
    • getMetricsOrBuilderList

      List<? extends V2beta2Autoscaling.MetricSpecOrBuilder> getMetricsOrBuilderList()
       metrics contains the specifications for which to use to calculate the
       desired replica count (the maximum replica count across all metrics will
       be used).  The desired replica count is calculated multiplying the
       ratio between the target value and the current value by the current
       number of pods.  Ergo, metrics used must decrease as the pod count is
       increased, and vice-versa.  See the individual metric source types for
       more information about how each type of metric must respond.
       If not set, the default metric will be set to 80% average CPU utilization.
       +optional
       
      repeated .k8s.io.api.autoscaling.v2beta2.MetricSpec metrics = 4;
    • getMetricsOrBuilder

      V2beta2Autoscaling.MetricSpecOrBuilder getMetricsOrBuilder(int index)
       metrics contains the specifications for which to use to calculate the
       desired replica count (the maximum replica count across all metrics will
       be used).  The desired replica count is calculated multiplying the
       ratio between the target value and the current value by the current
       number of pods.  Ergo, metrics used must decrease as the pod count is
       increased, and vice-versa.  See the individual metric source types for
       more information about how each type of metric must respond.
       If not set, the default metric will be set to 80% average CPU utilization.
       +optional
       
      repeated .k8s.io.api.autoscaling.v2beta2.MetricSpec metrics = 4;
    • hasBehavior

      boolean hasBehavior()
       behavior configures the scaling behavior of the target
       in both Up and Down directions (scaleUp and scaleDown fields respectively).
       If not set, the default HPAScalingRules for scale up and scale down are used.
       +optional
       
      optional .k8s.io.api.autoscaling.v2beta2.HorizontalPodAutoscalerBehavior behavior = 5;
    • getBehavior

       behavior configures the scaling behavior of the target
       in both Up and Down directions (scaleUp and scaleDown fields respectively).
       If not set, the default HPAScalingRules for scale up and scale down are used.
       +optional
       
      optional .k8s.io.api.autoscaling.v2beta2.HorizontalPodAutoscalerBehavior behavior = 5;
    • getBehaviorOrBuilder

       behavior configures the scaling behavior of the target
       in both Up and Down directions (scaleUp and scaleDown fields respectively).
       If not set, the default HPAScalingRules for scale up and scale down are used.
       +optional
       
      optional .k8s.io.api.autoscaling.v2beta2.HorizontalPodAutoscalerBehavior behavior = 5;