Interface V1Autoscaling.HorizontalPodAutoscalerSpecOrBuilder

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

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

    Modifier and Type
    Method
    Description
    int
    upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.
    int
    minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down.
    reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource.
    reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource.
    int
    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.
    boolean
    upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.
    boolean
    minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down.
    boolean
    reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource.
    boolean
    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.

    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()
       reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
       and will set the desired number of pods by using its Scale subresource.
       
      optional .k8s.io.api.autoscaling.v1.CrossVersionObjectReference scaleTargetRef = 1;
    • getScaleTargetRef

       reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
       and will set the desired number of pods by using its Scale subresource.
       
      optional .k8s.io.api.autoscaling.v1.CrossVersionObjectReference scaleTargetRef = 1;
    • getScaleTargetRefOrBuilder

       reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
       and will set the desired number of pods by using its Scale subresource.
       
      optional .k8s.io.api.autoscaling.v1.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()
       upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.
       
      optional int32 maxReplicas = 3;
    • getMaxReplicas

      int getMaxReplicas()
       upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.
       
      optional int32 maxReplicas = 3;
    • hasTargetCPUUtilizationPercentage

      boolean hasTargetCPUUtilizationPercentage()
       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.
       +optional
       
      optional int32 targetCPUUtilizationPercentage = 4;
    • getTargetCPUUtilizationPercentage

      int 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.
       +optional
       
      optional int32 targetCPUUtilizationPercentage = 4;