Share via


HorizontalPodAutoscalerSpecV2.MaxReplicas Property

Definition

Specifies the maximum number of replicas that a resource, such as a set of pods, can scale up to using the Horizontal Pod Autoscaler (HPA).

[YamlDotNet.Serialization.YamlMember(Alias="maxReplicas")]
public int MaxReplicas { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="maxReplicas")>]
member this.MaxReplicas : int with get, set
Public Property MaxReplicas As Integer

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Remarks

The MaxReplicas property defines an upper limit to prevent the workload from growing beyond a certain size, ensuring that resource utilization remains controlled. This is a required property and must be greater than or equal to 1.

Applies to