# HostPortRangeV1Beta1

- 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/HostPortRangeV1Beta1.cs)

Represents a range of host ports that can be used in Kubernetes deployments.

## Definition

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

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

## Constructors

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

## Properties

- [Max](/reference/api/csharp/aspire.hosting.kubernetes/hostportrangev1beta1/properties.md#max) : `int` `get; set` -- Gets or sets the maximum value of the port range. Represents the upper bound of the host port range in a Kubernetes resource configuration. Must be greater than or equal to the Min property to define a valid range.
- [Min](/reference/api/csharp/aspire.hosting.kubernetes/hostportrangev1beta1/properties.md#min) : `int` `get; set` -- Gets or sets the minimum value of the port range. Represents the smallest port number within this range.
