PersistentVolumeSpecV1.NodeAffinity 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 constraints that limit which nodes a persistent volume can be accessed from.
[YamlDotNet.Serialization.YamlMember(Alias="nodeAffinity")]
public Aspire.Hosting.Kubernetes.Resources.VolumeNodeAffinityV1 NodeAffinity { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="nodeAffinity")>]
member this.NodeAffinity : Aspire.Hosting.Kubernetes.Resources.VolumeNodeAffinityV1 with get, set
Public Property NodeAffinity As VolumeNodeAffinityV1
Property Value
- Attributes
-
YamlDotNet.Serialization.YamlMemberAttribute
Remarks
The NodeAffinity property defines the rules and requirements for associating a PersistentVolume with specific nodes in the Kubernetes cluster. It describes the node selection criteria, which help ensure proper placement of the volume based on node attributes and conditions.