# NodeSelectorTermV1 Properties

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

Represents a Kubernetes node selector term used to define conditions for node selection.

## MatchExpressions

- Name: `MatchExpressions`
- Modifiers: `get`
- Returns: [List<NodeSelectorRequirementV1>](/reference/api/csharp/aspire.hosting.kubernetes/nodeselectorrequirementv1.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/NodeSelectorTermV1.cs#L29)

Gets the list of match expressions that are used to define the conditions for node selection.

```csharp
public List<NodeSelectorRequirementV1> MatchExpressions { get; }
```

## Remarks

MatchExpressions is a collection of node selector requirements, each specifying a key, an operator, and an optional set of values. This allows defining complex rules for selecting nodes based on their labels or attributes.

## MatchFields

- Name: `MatchFields`
- Modifiers: `get`
- Returns: [List<NodeSelectorRequirementV1>](/reference/api/csharp/aspire.hosting.kubernetes/nodeselectorrequirementv1.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/NodeSelectorTermV1.cs#L41)

A collection of node selector requirements used to match fields in a Kubernetes node's metadata.

```csharp
public List<NodeSelectorRequirementV1> MatchFields { get; }
```

## Remarks

MatchFields contains a list of criteria that define field-based conditions for selecting nodes in Kubernetes. Each condition is represented by an instance of [NodeSelectorRequirementV1](/reference/api/csharp/aspire.hosting.kubernetes/nodeselectorrequirementv1.md), which specifies a key, operator, and optional set of values used for evaluation.
