# KubernetesEnvironmentResource.WithKind

- Module: [CommunityToolkit.Aspire.Hosting.Kind](/reference/api/go/communitytoolkit.aspire.hosting.kind.md)
- Defined on: [KubernetesEnvironmentResource](/reference/api/go/communitytoolkit.aspire.hosting.kind/kubernetesenvironmentresource.md)
- Version: `13.5.1-beta.895`
- Kind: `method`

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
type KubernetesEnvironmentResource interface {
    // ... omitted for brevity
    WithKind() KindEnvironmentResource
}
```

## Signature

```go
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()`.

## Defined on

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