Share via


NodeSelectorRequirementV1 Class

Definition

Represents a node selector requirement used to constrain a set of nodes in Kubernetes.

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

Remarks

NodeSelectorRequirementV1 defines a selector requirement as a key-value pair with an operator and an optional set of values. It is typically used in node affinity rules to determine eligibility of nodes for scheduling a workload.

Constructors

NodeSelectorRequirementV1()

Properties

Key

Specifies the key that is used to match against node labels or attributes.

Operator

Gets or sets the operator used in the node selection requirement. The operator specifies the key’s relationship to a set of values. Examples include "In", "NotIn", "Exists", or "DoesNotExist".

Values

Gets a collection of values used in the node selector requirements for specifying constraints.

Applies to