Package io.kubernetes.client.proto
Class V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder>
io.kubernetes.client.proto.V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,V2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilder,Cloneable
- Enclosing class:
- V2beta2Autoscaling.HorizontalPodAutoscalerSpec
public static final class V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder>
implements V2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilder
HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.Protobuf type
k8s.io.api.autoscaling.v2beta2.HorizontalPodAutoscalerSpec-
Method Summary
Modifier and TypeMethodDescriptionaddAllMetrics(Iterable<? extends V2beta2Autoscaling.MetricSpec> values) metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used).addMetrics(int index, V2beta2Autoscaling.MetricSpec value) metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used).addMetrics(int index, V2beta2Autoscaling.MetricSpec.Builder builderForValue) 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).addMetrics(V2beta2Autoscaling.MetricSpec.Builder builderForValue) 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).addMetricsBuilder(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).addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()behavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).clearField(com.google.protobuf.Descriptors.FieldDescriptor field) maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up.metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used).minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) 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.clone()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).behavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintmaxReplicas 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).getMetricsBuilder(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).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.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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanbehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) 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.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeMetrics(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).behavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).setBehavior(V2beta2Autoscaling.HorizontalPodAutoscalerBehavior.Builder builderForValue) behavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).setMaxReplicas(int value) maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up.setMetrics(int index, V2beta2Autoscaling.MetricSpec value) metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used).setMetrics(int index, V2beta2Autoscaling.MetricSpec.Builder builderForValue) metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used).setMinReplicas(int value) minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) 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.setScaleTargetRef(V2beta2Autoscaling.CrossVersionObjectReference.Builder builderForValue) 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.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder>
-
setField
public V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder>
-
clearField
public V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder>
-
clearOneof
public V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder>
-
setRepeatedField
public V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder>
-
addRepeatedField
public V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder>
-
mergeFrom
public V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder>
-
mergeFrom
public V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder mergeFrom(V2beta2Autoscaling.HorizontalPodAutoscalerSpec other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder>
-
mergeFrom
public V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder>- Throws:
IOException
-
hasScaleTargetRef
public 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;- Specified by:
hasScaleTargetRefin interfaceV2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilder
-
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;- Specified by:
getScaleTargetRefin interfaceV2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilder
-
setScaleTargetRef
public V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder setScaleTargetRef(V2beta2Autoscaling.CrossVersionObjectReference value) 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; -
setScaleTargetRef
public V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder setScaleTargetRef(V2beta2Autoscaling.CrossVersionObjectReference.Builder builderForValue) 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; -
mergeScaleTargetRef
public V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder mergeScaleTargetRef(V2beta2Autoscaling.CrossVersionObjectReference value) 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; -
clearScaleTargetRef
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; -
getScaleTargetRefBuilder
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;- Specified by:
getScaleTargetRefOrBuilderin interfaceV2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilder
-
hasMinReplicas
public 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;- Specified by:
hasMinReplicasin interfaceV2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilder
-
getMinReplicas
public 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;- Specified by:
getMinReplicasin interfaceV2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilder
-
setMinReplicas
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; -
clearMinReplicas
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
public 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;- Specified by:
hasMaxReplicasin interfaceV2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilder
-
getMaxReplicas
public 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;- Specified by:
getMaxReplicasin interfaceV2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilder
-
setMaxReplicas
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; -
clearMaxReplicas
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;- Specified by:
getMetricsListin interfaceV2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilder
-
getMetricsCount
public 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;- Specified by:
getMetricsCountin interfaceV2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilder
-
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;- Specified by:
getMetricsin interfaceV2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilder
-
setMetrics
public V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder setMetrics(int index, V2beta2Autoscaling.MetricSpec value) 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; -
setMetrics
public V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder setMetrics(int index, V2beta2Autoscaling.MetricSpec.Builder builderForValue) 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; -
addMetrics
public V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder addMetrics(V2beta2Autoscaling.MetricSpec value) 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; -
addMetrics
public V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder addMetrics(int index, V2beta2Autoscaling.MetricSpec value) 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; -
addMetrics
public V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder addMetrics(V2beta2Autoscaling.MetricSpec.Builder builderForValue) 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; -
addMetrics
public V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder addMetrics(int index, V2beta2Autoscaling.MetricSpec.Builder builderForValue) 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; -
addAllMetrics
public V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder addAllMetrics(Iterable<? extends V2beta2Autoscaling.MetricSpec> values) 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; -
clearMetrics
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; -
removeMetrics
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; -
getMetricsBuilder
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;- Specified by:
getMetricsOrBuilderin interfaceV2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilder
-
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;- Specified by:
getMetricsOrBuilderListin interfaceV2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilder
-
addMetricsBuilder
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; -
addMetricsBuilder
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; -
getMetricsBuilderList
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
public 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;- Specified by:
hasBehaviorin interfaceV2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilder
-
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;- Specified by:
getBehaviorin interfaceV2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilder
-
setBehavior
public V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder setBehavior(V2beta2Autoscaling.HorizontalPodAutoscalerBehavior value) 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; -
setBehavior
public V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder setBehavior(V2beta2Autoscaling.HorizontalPodAutoscalerBehavior.Builder builderForValue) 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; -
mergeBehavior
public V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder mergeBehavior(V2beta2Autoscaling.HorizontalPodAutoscalerBehavior value) 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; -
clearBehavior
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; -
getBehaviorBuilder
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;- Specified by:
getBehaviorOrBuilderin interfaceV2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilder
-
setUnknownFields
public final V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder>
-
mergeUnknownFields
public final V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder>
-