# KubernetesAspireDashboardResource

- Module: [Aspire.Hosting.Kubernetes](/reference/api/go/aspire.hosting.kubernetes.md)
- Version: `13.6.5-preview.1.26559.7`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/b33d222049f1ecc3bc7257ec07b622fe550b2580)

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

```go
type KubernetesAspireDashboardResource interface {
    IComputeResource
    Resource
    ResourceWithArgs
    ResourceWithEndpoints
    ResourceWithEnvironment
    ResourceWithWaitSupport
}
```

## Embeds

- `IComputeResource`
- `Resource`
- `ResourceWithArgs`
- `ResourceWithEndpoints`
- `ResourceWithEnvironment`
- `ResourceWithWaitSupport`

## 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/go/aspire.hosting.kubernetes/kubernetesaspiredashboardresource/withforwardedheaders.md) -- `method` -- Configures whether forwarded headers processing is enabled for the Aspire dashboard container.
  ```go
  WithForwardedHeaders(options ...*WithForwardedHeadersOptions) KubernetesAspireDashboardResource
  ```
- [WithOtlpServicePort](/reference/api/go/aspire.hosting.kubernetes/kubernetesaspiredashboardresource/withotlpserviceport.md) -- `method` -- Sets the Kubernetes Service ports for the Aspire Dashboard OTLP endpoints.
  ```go
  WithOtlpServicePort(options ...*WithOtlpServicePortOptions) KubernetesAspireDashboardResource
  ```
- [WithServicePort](/reference/api/go/aspire.hosting.kubernetes/kubernetesaspiredashboardresource/withserviceport.md) -- `method` -- Sets the Kubernetes Service port for the Aspire Dashboard HTTP endpoint.
  ```go
  WithServicePort(options ...*WithServicePortOptions) KubernetesAspireDashboardResource
  ```
