# 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/becb48e2d61099e35ae336d527d3875e928d6594/src/Aspire.Hosting.Kubernetes/Resources/PodAntiAffinityV1.cs#L32-L42)

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