# HostAliasV1

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

Represents a host alias configuration which maps an IP address to a set of hostnames. This is used for specifying additional host entries in a pod's /etc/hosts file.

## Definition

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

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

## Constructors

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

## Properties

- [Hostnames](/reference/api/csharp/aspire.hosting.kubernetes/hostaliasv1/properties.md#hostnames) : `List<string>` `get` -- Represents a collection of hostnames associated with a specific IP address. This property contains a list of hostnames used for defining aliases.
- [Ip](/reference/api/csharp/aspire.hosting.kubernetes/hostaliasv1/properties.md#ip) : `string` `get; set` -- Gets or sets the IP address associated with the HostAlias in the Kubernetes resource definition.
