# NodeSelectorV1

- Kind: `class`
- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Version: `13.3.0-preview.1.26254.5`
- Namespace: `Aspire.Hosting.Kubernetes.Resources`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/NodeSelectorV1.cs)

Represents a node selector in Kubernetes scheduling configuration. The NodeSelectorV1 object contains a list of node selector terms that are used to specify node affinity. Each term specifies a set of match expressions that are evaluated to determine whether a node satisfies the scheduling constraints.

## Definition

```csharp
namespace Aspire.Hosting.Kubernetes.Resources;

public sealed class NodeSelectorV1
{
    // ...
}
```

## Constructors

- [NodeSelectorV1](/reference/api/csharp/aspire.hosting.kubernetes/nodeselectorv1/constructors.md#constructor)

## Properties

- [NodeSelectorTerms](/reference/api/csharp/aspire.hosting.kubernetes/nodeselectorv1/properties.md#nodeselectorterms) : [List<NodeSelectorTermV1>](/reference/api/csharp/aspire.hosting.kubernetes/nodeselectortermv1.md) `get` -- Represents a collection of node selector terms that are used to specify requirements for node selection in Kubernetes. Each entry in the collection is a [NodeSelectorTermV1](/reference/api/csharp/aspire.hosting.kubernetes/nodeselectortermv1.md) object, which defines a set of conditions to match against nodes.
