Class HorizontalPodAutoscalerSpecArgs
specification of a horizontal pod autoscaler.
Inherited Members
Namespace: Pulumi.Kubernetes.Types.Inputs.Autoscaling.V1
Assembly: Pulumi.Kubernetes.dll
Syntax
public class HorizontalPodAutoscalerSpecArgs : ResourceArgs
Properties
View SourceMaxReplicas
upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.
Declaration
public Input<int> MaxReplicas { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
MinReplicas
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.
Declaration
public Input<int> MinReplicas { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
ScaleTargetRef
reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource.
Declaration
public Input<CrossVersionObjectReferenceArgs> ScaleTargetRef { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<CrossVersionObjectReferenceArgs> |
TargetCPUUtilizationPercentage
target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used.
Declaration
public Input<int> TargetCPUUtilizationPercentage { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |