# WithDashboard

- Module: [Aspire.Hosting.Kubernetes](/reference/api/go/aspire.hosting.kubernetes.md)
- Version: `17.0.0`
- Kind: `method`
- Defined on: [`KubernetesEnvironmentResource`](/reference/api/go/aspire.hosting.kubernetes/kubernetesenvironmentresource.md)
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

Enables the Aspire dashboard for telemetry visualization in this Kubernetes environment.

## Remarks

When enabled, an Aspire Dashboard container is deployed alongside the application resources
in the Kubernetes cluster. All resources with OTLP telemetry support are automatically
configured to send telemetry data to the dashboard.

## Definition

```go
func (KubernetesEnvironmentResource) WithDashboard(options ...*WithDashboardOptions) KubernetesEnvironmentResource
```

## Parameters

- `options` (`...*WithDashboardOptions`) -- optional settings, see [Options](#options)

## Options

Optional parameters are passed in a trailing `options ...*WithDashboardOptions` argument.

- `Enabled` (`*bool`) -- Whether to enable the dashboard. Default is true.

## Returns

[`KubernetesEnvironmentResource`](/reference/api/go/aspire.hosting.kubernetes/kubernetesenvironmentresource.md) -- The resource builder.

Returns a handle; failures surface later via `Err()`.

## Applies to

- [`KubernetesEnvironmentResource`](/reference/api/go/aspire.hosting.kubernetes/kubernetesenvironmentresource.md)
