# IngressServiceBackendV1

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

Represents a backend service configuration in a Kubernetes ingress resource.

## Definition

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

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

## Remarks

This class defines the service-based backend for routing traffic in Kubernetes Ingress configurations. It specifies the service name and the port of the service that will handle incoming traffic.

## Constructors

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

## Properties

- [Name](/reference/api/csharp/aspire.hosting.kubernetes/ingressservicebackendv1/properties.md#name) : `string` `get; set` -- Gets or sets the name of the referenced Kubernetes service. Represents the identifier of the service that the backend points to.
- [Port](/reference/api/csharp/aspire.hosting.kubernetes/ingressservicebackendv1/properties.md#port) : [ServiceBackendPortV1](/reference/api/csharp/aspire.hosting.kubernetes/servicebackendportv1.md) `get; set` -- Represents the port information for a backend service within an ingress resource. This property defines the port details as a [ServiceBackendPortV1](/reference/api/csharp/aspire.hosting.kubernetes/servicebackendportv1.md) object, which includes the port number and an optional name associated with the port.
