Class HPAScalingRulesPatchArgs
- java.lang.Object
-
- com.pulumi.resources.InputArgs
-
- com.pulumi.resources.ResourceArgs
-
- com.pulumi.kubernetes.autoscaling.v2beta2.inputs.HPAScalingRulesPatchArgs
-
public final class HPAScalingRulesPatchArgs extends com.pulumi.resources.ResourceArgs
HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HPAScalingRulesPatchArgs.Builder
-
Field Summary
Fields Modifier and Type Field Description static HPAScalingRulesPatchArgs
Empty
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HPAScalingRulesPatchArgs.Builder
builder()
static HPAScalingRulesPatchArgs.Builder
builder(HPAScalingRulesPatchArgs defaults)
java.util.Optional<com.pulumi.core.Output<java.util.List<HPAScalingPolicyPatchArgs>>>
policies()
java.util.Optional<com.pulumi.core.Output<java.lang.String>>
selectPolicy()
java.util.Optional<com.pulumi.core.Output<java.lang.Integer>>
stabilizationWindowSeconds()
-
-
-
Field Detail
-
Empty
public static final HPAScalingRulesPatchArgs Empty
-
-
Method Detail
-
policies
public java.util.Optional<com.pulumi.core.Output<java.util.List<HPAScalingPolicyPatchArgs>>> policies()
- Returns:
- policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid
-
selectPolicy
public java.util.Optional<com.pulumi.core.Output<java.lang.String>> selectPolicy()
- Returns:
- selectPolicy is used to specify which policy should be used. If not set, the default value MaxPolicySelect is used.
-
stabilizationWindowSeconds
public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> stabilizationWindowSeconds()
- Returns:
- StabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long).
-
builder
public static HPAScalingRulesPatchArgs.Builder builder()
-
builder
public static HPAScalingRulesPatchArgs.Builder builder(HPAScalingRulesPatchArgs defaults)
-
-