# IngressTLSV1

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

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

## Definition

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

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

## Remarks

This class defines the Transport Layer Security (TLS) settings for securing Ingress traffic to one or more hosts. It specifies the details such as the associated secret that contains the TLS certificate and key, and the list of hosts to which the TLS settings apply.

## Constructors

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

## Properties

- [Hosts](/reference/api/csharp/aspire.hosting.kubernetes/ingresstlsv1/properties.md#hosts) : `List<string>` `get` -- Gets a list of hostnames associated with the ingress TLS configuration.
- [SecretName](/reference/api/csharp/aspire.hosting.kubernetes/ingresstlsv1/properties.md#secretname) : `string` `get; set` -- 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.
