# IngressRuleV1 Properties

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

Represents an ingress rule for Kubernetes resources.

## Host

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

Gets or sets the host for the ingress rule in Kubernetes.

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

## Remarks

The `Host` property is used to specify the fully qualified domain name (FQDN) that is matched for the ingress rule. It helps in routing incoming network traffic based on the host name specified in HTTP requests. If left empty, the ingress rule applies to all incoming traffic irrespective of the host name.

## Http

- Name: `Http`
- Modifiers: `get; set`
- Returns: [HttpIngressRuleValueV1](/reference/api/csharp/aspire.hosting.kubernetes/httpingressrulevaluev1.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/IngressRuleV1.cs)

Represents the HTTP ingress rule value associated with this ingress rule.

```csharp
public HttpIngressRuleValueV1 Http { get; set; }
```

## Remarks

This property defines the HTTP routing rules, including paths and backend services, for managing HTTP traffic in a Kubernetes ingress resource. It specifies how requests are matched and routed based on path patterns provided in the configuration.
