# IngressTLSV1 Properties

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

Represents the TLS configuration for an Ingress resource in Kubernetes (networking.k8s.io/v1).

## Hosts

- Name: `Hosts`
- Modifiers: `get`
- Returns: `List<string>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/IngressTLSV1.cs#L37)

Gets a list of hostnames associated with the ingress TLS configuration.

```csharp
public List<string> Hosts { get; }
```

## Remarks

This property represents a collection of hosts that are specified for the ingress TLS configuration. These hosts are used for secure transport and typically represent domain names that are covered by the associated TLS secret. The list may contain multiple entries depending on the assigned hosts.

## SecretName

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

Represents the name of the Kubernetes Secret containing the TLS certificate and key. This property is used to secure communication for the specified hosts in an ingress resource.

```csharp
public string SecretName { get; set; }
```
