Package io.kubernetes.client.proto
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 TypeMethodDescriptionbehavior 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).intmaxReplicas 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).intmetrics 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).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).List<? extends V2beta2Autoscaling.MetricSpecOrBuilder>metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used).intminReplicas 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.booleanbehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).booleanmaxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up.booleanminReplicas is the lower limit for the number of replicas to which the autoscaler can scale down.booleanscaleTargetRef 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
isInitializedMethods 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
V2beta2Autoscaling.CrossVersionObjectReference 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
V2beta2Autoscaling.CrossVersionObjectReferenceOrBuilder 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
List<V2beta2Autoscaling.MetricSpec> 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
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
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
V2beta2Autoscaling.HorizontalPodAutoscalerBehavior 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
V2beta2Autoscaling.HorizontalPodAutoscalerBehaviorOrBuilder 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;
-