# HorizontalPodAutoscalerBehaviorV2 Constructors

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

Defines the scaling behavior for a Horizontal Pod Autoscaler in Kubernetes.

## HorizontalPodAutoscalerBehaviorV2

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

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