com.pulumi.kubernetes.autoscaling.v1.inputs.HorizontalPodAutoscalerSpecArgs Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.kubernetes.autoscaling.v1.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.kubernetes.autoscaling.v1.inputs.CrossVersionObjectReferenceArgs;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* specification of a horizontal pod autoscaler.
*
*/
public final class HorizontalPodAutoscalerSpecArgs extends com.pulumi.resources.ResourceArgs {
public static final HorizontalPodAutoscalerSpecArgs Empty = new HorizontalPodAutoscalerSpecArgs();
/**
* maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.
*
*/
@Import(name="maxReplicas", required=true)
private Output maxReplicas;
/**
* @return maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.
*
*/
public Output maxReplicas() {
return this.maxReplicas;
}
/**
* 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.
*
*/
@Import(name="minReplicas")
private @Nullable Output minReplicas;
/**
* @return 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.
*
*/
public Optional
© 2015 - 2025 Weber Informatics LLC | Privacy Policy