# KubernetesAspireDashboardResource

- Module: [Aspire.Hosting.Kubernetes](/reference/api/typescript/aspire.hosting.kubernetes.md)
- Version: `13.4.0-preview.1.26281.18`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire)

Represents a resource for the Aspire Dashboard deployed into a Kubernetes environment. This resource is used to visualize telemetry data from resources running in the cluster.

## Definition

```typescript
interface KubernetesAspireDashboardResource
  extends IComputeResource,
    IResource,
    IResourceWithArgs,
    IResourceWithEndpoints,
    IResourceWithEnvironment,
    IResourceWithProbes,
    IResourceWithWaitSupport {
  readonly otlpGrpcEndpoint: EndpointReference;
  readonly primaryEndpoint: EndpointReference;
  withForwardedHeaders(enabled?: boolean): KubernetesAspireDashboardResource;
  withOtlpServicePort(
      grpcPort?: number,
      httpPort?: number): KubernetesAspireDashboardResource;
  withServicePort(port?: number): KubernetesAspireDashboardResource;
}
```

## Properties

- `otlpGrpcEndpoint`: `EndpointReference` `get` -- Gets the OTLP gRPC endpoint for receiving telemetry data.
- `primaryEndpoint`: `EndpointReference` `get` -- Gets the primary HTTP endpoint of the Aspire Dashboard UI.

## Methods

- [withForwardedHeaders](/reference/api/typescript/aspire.hosting.kubernetes/kubernetesaspiredashboardresource/withforwardedheaders.md) -- `method` -- Configures whether forwarded headers processing is enabled for the Aspire dashboard container.
    ```typescript
  withForwardedHeaders(enabled?: boolean): KubernetesAspireDashboardResource
  ```
- [withOtlpServicePort](/reference/api/typescript/aspire.hosting.kubernetes/kubernetesaspiredashboardresource/withotlpserviceport.md) -- `method` -- Sets the Kubernetes Service ports for the Aspire Dashboard OTLP endpoints.
    ```typescript
  withOtlpServicePort(grpcPort?: number, httpPort?: number): KubernetesAspireDashboardResource
  ```
- [withServicePort](/reference/api/typescript/aspire.hosting.kubernetes/kubernetesaspiredashboardresource/withserviceport.md) -- `method` -- Sets the Kubernetes Service port for the Aspire Dashboard HTTP endpoint.
    ```typescript
  withServicePort(port?: number): KubernetesAspireDashboardResource
  ```
