Share via


PersistentVolumeSpecV1.NodeAffinity Property

Definition

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.

Applies to