NodeAffinityV1 Properties
Class Properties 2 members
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).
PreferredDuringSchedulingIgnoredDuringExecution Section titled PreferredDuringSchedulingIgnoredDuringExecution List<PreferredSchedulingTermV1> 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.
public List<PreferredSchedulingTermV1> PreferredDuringSchedulingIgnoredDuringExecution { get; }Remarks
The `PreferredDuringSchedulingIgnoredDuringExecution` property defines a set of preferred scheduling rules that Kubernetes attempts to honor when scheduling a pod. These preferences are not mandatory, meaning the scheduler may ignore them if nodes satisfying the preferences are not available. This flexibility ensures that the pod can still be scheduled even if the preferred nodes are unavailable. Each preference is represented as an instance of
PreferredSchedulingTermV1. RequiredDuringSchedulingIgnoredDuringExecution Section titled RequiredDuringSchedulingIgnoredDuringExecution NodeSelectorV1 Specifies node affinity rules that are required during scheduling but are not enforced during execution.
public NodeSelectorV1 RequiredDuringSchedulingIgnoredDuringExecution { get; set; }Remarks
The RequiredDuringSchedulingIgnoredDuringExecution property defines a mandatory set of rules for scheduling pods onto specific nodes. These rules are considered by the Kubernetes scheduler at pod scheduling time. However, they are not enforced if the pod is already running and the node no longer satisfies the selection criteria.