VolumeNodeAffinityV1 Properties
ClassProperties1 member
Represents the volume node affinity configuration in Kubernetes. VolumeNodeAffinityV1 describes the node-specific constraints for a PersistentVolume to ensure storage resources are bound to specific nodes based on the required scheduling and node affinity rules.
Defines the required node affinity constraints for scheduling a Kubernetes volume.
public NodeSelectorV1? Required { get; set; }Remarks
This property specifies mandatory node selection criteria using a
NodeSelectorV1 object. The criteria are used to determine the nodes on which a Kubernetes volume can be scheduled. It enables the definition of strict scheduling constraints that must be met for a node to be eligible. Defaults to null so the property is omitted from the serialized YAML when no required selector has been configured. Eagerly initializing this to new() would otherwise emit an invalid empty required: {} mapping that Kubernetes rejects on apply.