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| Modifier and Type | Method and Description |
|---|---|
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).
|
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).
|
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).
|
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).
|
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).
|
V2beta2Autoscaling.MetricSpec.Builder |
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).
|
V2beta2Autoscaling.MetricSpec.Builder |
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).
|
V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V2beta2Autoscaling.HorizontalPodAutoscalerSpec |
build() |
V2beta2Autoscaling.HorizontalPodAutoscalerSpec |
buildPartial() |
V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder |
clear() |
V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder |
clearBehavior()
behavior configures the scaling behavior of the target
in both Up and Down directions (scaleUp and scaleDown fields respectively).
|
V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder |
clearMaxReplicas()
maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up.
|
V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder |
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).
|
V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder |
clearMinReplicas()
minReplicas is the lower limit for the number of replicas to which the autoscaler
can scale down.
|
V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder |
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.
|
V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder |
clone() |
V2beta2Autoscaling.HorizontalPodAutoscalerBehavior |
getBehavior()
behavior configures the scaling behavior of the target
in both Up and Down directions (scaleUp and scaleDown fields respectively).
|
V2beta2Autoscaling.HorizontalPodAutoscalerBehavior.Builder |
getBehaviorBuilder()
behavior configures the scaling behavior of the target
in both Up and Down directions (scaleUp and scaleDown fields respectively).
|
V2beta2Autoscaling.HorizontalPodAutoscalerBehaviorOrBuilder |
getBehaviorOrBuilder()
behavior configures the scaling behavior of the target
in both Up and Down directions (scaleUp and scaleDown fields respectively).
|
V2beta2Autoscaling.HorizontalPodAutoscalerSpec |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getMaxReplicas()
maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up.
|
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).
|
V2beta2Autoscaling.MetricSpec.Builder |
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).
|
List<V2beta2Autoscaling.MetricSpec.Builder> |
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).
|
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).
|
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).
|
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).
|
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).
|
int |
getMinReplicas()
minReplicas is the lower limit for the number of replicas to which the autoscaler
can scale down.
|
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.
|
V2beta2Autoscaling.CrossVersionObjectReference.Builder |
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.
|
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.
|
boolean |
hasBehavior()
behavior configures the scaling behavior of the target
in both Up and Down directions (scaleUp and scaleDown fields respectively).
|
boolean |
hasMaxReplicas()
maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up.
|
boolean |
hasMinReplicas()
minReplicas is the lower limit for the number of replicas to which the autoscaler
can scale down.
|
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.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
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).
|
V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder |
mergeFrom(com.google.protobuf.Message other) |
V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder |
mergeFrom(V2beta2Autoscaling.HorizontalPodAutoscalerSpec other) |
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.
|
V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder |
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).
|
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).
|
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).
|
V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder |
setMaxReplicas(int value)
maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up.
|
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).
|
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).
|
V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder |
setMinReplicas(int value)
minReplicas is the lower limit for the number of replicas to which the autoscaler
can scale down.
|
V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
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.
|
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.
|
V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder>public V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder>public V2beta2Autoscaling.HorizontalPodAutoscalerSpec getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic V2beta2Autoscaling.HorizontalPodAutoscalerSpec build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic V2beta2Autoscaling.HorizontalPodAutoscalerSpec buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder>public V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder>public V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder>public V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder>public V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder>public V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder>public V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder>public V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder mergeFrom(V2beta2Autoscaling.HorizontalPodAutoscalerSpec other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder>public V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder>IOExceptionpublic 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;
hasScaleTargetRef in interface V2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilderpublic 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;
getScaleTargetRef in interface V2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilderpublic 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;
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;
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;
public V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder 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;
public V2beta2Autoscaling.CrossVersionObjectReference.Builder 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;
public 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;
getScaleTargetRefOrBuilder in interface V2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilderpublic 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;hasMinReplicas in interface V2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilderpublic 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;getMinReplicas in interface V2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilderpublic V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder setMinReplicas(int value)
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;public V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder 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;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;hasMaxReplicas in interface V2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilderpublic 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;getMaxReplicas in interface V2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilderpublic V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder setMaxReplicas(int value)
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;public V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder 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;public 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;getMetricsList in interface V2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilderpublic 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;getMetricsCount in interface V2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilderpublic 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;getMetrics in interface V2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilderpublic 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;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;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;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;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;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;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;public V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder 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;public V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder 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). 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;public V2beta2Autoscaling.MetricSpec.Builder 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). 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;public 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;getMetricsOrBuilder in interface V2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilderpublic 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;getMetricsOrBuilderList in interface V2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilderpublic V2beta2Autoscaling.MetricSpec.Builder 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;public V2beta2Autoscaling.MetricSpec.Builder 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). 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;public List<V2beta2Autoscaling.MetricSpec.Builder> 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;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;
hasBehavior in interface V2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilderpublic 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;
getBehavior in interface V2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilderpublic 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;
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;
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;
public V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder 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;
public V2beta2Autoscaling.HorizontalPodAutoscalerBehavior.Builder 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;
public 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;
getBehaviorOrBuilder in interface V2beta2Autoscaling.HorizontalPodAutoscalerSpecOrBuilderpublic final V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder>public final V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.HorizontalPodAutoscalerSpec.Builder>Copyright © 2023. All rights reserved.