# IKindResource

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

## Definition

```go
type IKindResource interface{}
```

## Methods

- [WithClusterLifetime](/reference/api/go/communitytoolkit.aspire.hosting.kind/ikindresource/withclusterlifetime.md) -- `method` -- Sets the cluster lifetime. When `Session` (the default), the cluster is deleted on graceful shutdown or other process-exit signals on a best-effort basis. When `Persistent`, the cluster survives AppHost restarts and is reused on next startup.
  ```go
  WithClusterLifetime(lifetime ClusterLifetime) IKindResource
  ```
- [WithKubernetesVersion](/reference/api/go/communitytoolkit.aspire.hosting.kind/ikindresource/withkubernetesversion.md) -- `method` -- Sets the Kubernetes version for the Kind cluster.
  ```go
  WithKubernetesVersion(version string) IKindResource
  ```
- [WithNodeImage](/reference/api/go/communitytoolkit.aspire.hosting.kind/ikindresource/withnodeimage.md) -- `method` -- Sets the Kind node image for every node in the cluster.
  ```go
  WithNodeImage(image string) IKindResource
  ```
- [WithNodeMount](/reference/api/go/communitytoolkit.aspire.hosting.kind/ikindresource/withnodemount.md) -- `method` -- Adds an extra host mount to every Kind node container.
  ```go
  WithNodeMount(hostPath string, containerPath string, options ...*WithNodeMountOptions) IKindResource
  ```
- [WithWorkerNodes](/reference/api/go/communitytoolkit.aspire.hosting.kind/ikindresource/withworkernodes.md) -- `method` -- Sets the number of worker nodes for the Kind cluster.
  ```go
  WithWorkerNodes(count float64) IKindResource
  ```
