# WithKind

- Module: [CommunityToolkit.Aspire.Hosting.Kind](/reference/api/go/communitytoolkit.aspire.hosting.kind.md)
- Version: `13.5.1-beta.895`
- Kind: `method`
- Defined on: [`KubernetesEnvironmentResource`](/reference/api/go/communitytoolkit.aspire.hosting.kind/kubernetesenvironmentresource.md)
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/2c26a4c9649531d17fce3cbc4c5dea00d61d279c)

Configures the Kubernetes environment to create and deploy to a local Kind cluster. Enables `aspire deploy` to provision the cluster, load container images, and install the generated Helm chart.

## Definition

```go
func (KubernetesEnvironmentResource) WithKind() KindEnvironmentResource
```

## Returns

[`KindEnvironmentResource`](/reference/api/go/communitytoolkit.aspire.hosting.kind/kindenvironmentresource.md) -- A reference to the `IResourceBuilder` for further Kind-specific configuration.

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

## Applies to

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