Interface V2beta1Autoscaling.HorizontalPodAutoscalerSpecOrBuilder

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

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

    Modifier and Type
    Method
    Description
    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
    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.v2beta1.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.v2beta1.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.v2beta1.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.
       +optional
       
      repeated .k8s.io.api.autoscaling.v2beta1.MetricSpec metrics = 4;
    • getMetrics

      V2beta1Autoscaling.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.
       +optional
       
      repeated .k8s.io.api.autoscaling.v2beta1.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.
       +optional
       
      repeated .k8s.io.api.autoscaling.v2beta1.MetricSpec metrics = 4;
    • getMetricsOrBuilderList

      List<? extends V2beta1Autoscaling.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.
       +optional
       
      repeated .k8s.io.api.autoscaling.v2beta1.MetricSpec metrics = 4;
    • getMetricsOrBuilder

      V2beta1Autoscaling.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.
       +optional
       
      repeated .k8s.io.api.autoscaling.v2beta1.MetricSpec metrics = 4;