Share via


NodeAffinityV1 Class

Definition

Represents node affinity scheduling configuration for Kubernetes pods. This class defines the rules to determine node selection for a pod during scheduling. Node affinity allows a pod to specify constraints that limit the set of nodes it can be scheduled onto. This includes both hard requirements (requiredDuringSchedulingIgnoredDuringExecution) and soft preferences (preferredDuringSchedulingIgnoredDuringExecution).

[YamlDotNet.Serialization.YamlSerializable]
public sealed class NodeAffinityV1
[<YamlDotNet.Serialization.YamlSerializable>]
type NodeAffinityV1 = class
Public NotInheritable Class NodeAffinityV1
Inheritance
NodeAffinityV1
Attributes
YamlDotNet.Serialization.YamlSerializableAttribute

Constructors

NodeAffinityV1()

Properties

PreferredDuringSchedulingIgnoredDuringExecution

A list of preferred scheduling terms that influence the scheduling of a pod while ignoring the execution of the scheduling preferences. Each term in the list defines a preference for scheduling pods onto nodes based on specific criteria and associated weights.

RequiredDuringSchedulingIgnoredDuringExecution

Specifies node affinity rules that are required during scheduling but are not enforced during execution.

Applies to