# IngressSpecV1

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

Represents the specification of an Ingress resource in Kubernetes (networking.k8s.io/v1).

## Definition

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

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

## Remarks

This class defines the configuration options for an Ingress resource to manage HTTP and HTTPS access to services in a Kubernetes cluster. It includes the ability to set default backends, define rules, specify TLS configurations, and optionally set an ingress class name.

## Constructors

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

## Properties

- [DefaultBackend](/reference/api/csharp/aspire.hosting.kubernetes/ingressspecv1/properties.md#defaultbackend) : [IngressBackendV1](/reference/api/csharp/aspire.hosting.kubernetes/ingressbackendv1.md) `get; set` -- Defines the default backend for a Kubernetes ingress resource.
- [IngressClassName](/reference/api/csharp/aspire.hosting.kubernetes/ingressspecv1/properties.md#ingressclassname) : `string` `get; set` -- Specifies the IngressClass associated with the Kubernetes Ingress resource.
- [Rules](/reference/api/csharp/aspire.hosting.kubernetes/ingressspecv1/properties.md#rules) : [List<IngressRuleV1>](/reference/api/csharp/aspire.hosting.kubernetes/ingressrulev1.md) `get` -- Gets the collection of ingress rules associated with the Kubernetes ingress resource.
- [Tls](/reference/api/csharp/aspire.hosting.kubernetes/ingressspecv1/properties.md#tls) : [List<IngressTLSV1>](/reference/api/csharp/aspire.hosting.kubernetes/ingresstlsv1.md) `get` -- Represents the TLS configuration for a Kubernetes ingress resource.
