# HostPortRangeV1Beta1 Properties

- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Type: [HostPortRangeV1Beta1](/reference/api/csharp/aspire.hosting.kubernetes/hostportrangev1beta1.md)
- Kind: `Properties`
- Members: `2`

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

## Max

- Name: `Max`
- Modifiers: `get; set`
- Returns: `int`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/HostPortRangeV1Beta1.cs)

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.

```csharp
public int Max { get; set; }
```

## Min

- Name: `Min`
- Modifiers: `get; set`
- Returns: `int`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/HostPortRangeV1Beta1.cs)

Gets or sets the minimum value of the port range. Represents the smallest port number within this range.

```csharp
public int Min { get; set; }
```
