# PodAffinityTermV1 Constructors

- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Type: [PodAffinityTermV1](/reference/api/csharp/aspire.hosting.kubernetes/podaffinitytermv1.md)
- Kind: `Constructors`
- Members: `1`

Represents a term used to define pod affinity/anti-affinity requirements in Kubernetes. The PodAffinityTermV1 specifies conditions such as label selectors, namespace selectors, and topology keys that determine the placement of pods in relation to other pods in a cluster.

## PodAffinityTermV1

- Name: `Constructor`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/PodAffinityTermV1.cs#L27-L80)

```csharp
public sealed class PodAffinityTermV1
{
    public PodAffinityTermV1()
    {
        // ...
    }
}
```
