# NodeSelectorRequirementV1 Properties

- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Type: [NodeSelectorRequirementV1](/reference/api/csharp/aspire.hosting.kubernetes/nodeselectorrequirementv1.md)
- Kind: `Properties`
- Members: `3`

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

## Key

- Name: `Key`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/NodeSelectorRequirementV1.cs)

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

```csharp
public string Key { get; set; }
```

## Operator

- Name: `Operator`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/NodeSelectorRequirementV1.cs)

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".

```csharp
public string Operator { get; set; }
```

## Values

- Name: `Values`
- Modifiers: `get`
- Returns: `List<string>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/NodeSelectorRequirementV1.cs#L31)

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

```csharp
public List<string> Values { get; }
```
