# PodAntiAffinityV1 Constructors

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

Represents the pod anti-affinity rules used in Kubernetes scheduling policies.

## PodAntiAffinityV1

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

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