NodeSelectorRequirementV1
Class sealed net10.0
Represents a node selector requirement used to constrain a set of nodes in Kubernetes.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class NodeSelectorRequirementV1{ // ...}Remarks
Section titled 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.
Constructors1
Section titled ConstructorsProperties3
Section titled PropertiesKeyget; setstring Specifies the key that is used to match against node labels or attributes.
Operatorget; setstring 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".
ValuesgetList<string> Gets a collection of values used in the node selector requirements for specifying constraints.