TopologySpreadConstraintV1.NodeAffinityPolicy 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.
Defines the policy for node affinity within a Kubernetes topology spread constraint. Determines how nodes are selected to satisfy the specified affinity rules.
[YamlDotNet.Serialization.YamlMember(Alias="nodeAffinityPolicy")]
public string? NodeAffinityPolicy { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="nodeAffinityPolicy")>]
member this.NodeAffinityPolicy : string with get, set
Public Property NodeAffinityPolicy As String
Property Value
- Attributes
-
YamlDotNet.Serialization.YamlMemberAttribute
Remarks
The policy can control the placement of pods on nodes based on node affinity rules, ensuring that workloads adhere to specific distribution or colocation requirements. This property is optional and may be null if no specific node affinity policy is set.