# Ingress Constructors

- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Type: [Ingress](/reference/api/csharp/aspire.hosting.kubernetes/ingress.md)
- Kind: `Constructors`
- Members: `1`

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

## Ingress

- Name: `Constructor`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/IngressV1.cs#L18-L30)

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

```csharp
public sealed class Ingress
{
    public Ingress()
    {
        // ...
    }
}
```

## Remarks

The Ingress class is a sealed implementation of a Kubernetes resource used to expose HTTP and HTTPS routes to services within a cluster. It provides a mechanism to define rules for routing external traffic to specific backends, as well as support for setting TLS configurations, default backends, and ingress class names. Inherits from the BaseKubernetesResource with "networking.k8s.io/v1" as the API version and "Ingress" as its kind.
