# IngressRuleV1

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

Represents an ingress rule for Kubernetes resources.

## Definition

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

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

## Remarks

This class defines a rule within a Kubernetes ingress resource that specifies the routing configuration for incoming network traffic. It includes an optional host and detailed HTTP rule settings.

## Constructors

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

## Properties

- [Host](/reference/api/csharp/aspire.hosting.kubernetes/ingressrulev1/properties.md#host) : `string` `get; set` -- Gets or sets the host for the ingress rule in Kubernetes.
- [Http](/reference/api/csharp/aspire.hosting.kubernetes/ingressrulev1/properties.md#http) : [HttpIngressRuleValueV1](/reference/api/csharp/aspire.hosting.kubernetes/httpingressrulevaluev1.md) `get; set` -- Represents the HTTP ingress rule value associated with this ingress rule.
