HorizontalPodAutoscalerSpecV2.MaxReplicas Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.