# CommunityToolkit.Aspire.Hosting.Kind

- Module: `CommunityToolkit.Aspire.Hosting.Kind`
- Version: `13.5.1-beta.895`
- Import path: `apphost/modules/aspire`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/2c26a4c9649531d17fce3cbc4c5dea00d61d279c)
- Functions: `26`
- Types: `11`

## Handles

- [CommunityToolkit_Aspire_Hosting_KindCrdWaitBehavior](/reference/api/go/communitytoolkit.aspire.hosting.kind/communitytoolkit-aspire-hosting-kindcrdwaitbehavior.md) -- `handle` - 0 members -- Specifies how Kind manifest resources handle CRD Established-condition wait failures.
- [IKindResource](/reference/api/go/communitytoolkit.aspire.hosting.kind/ikindresource.md) -- `handle` - 5 members
- [K8sManifestResource](/reference/api/go/communitytoolkit.aspire.hosting.kind/k8smanifestresource.md) -- `handle` - 19 members -- A Kubernetes manifest applied to a Kind cluster via `kubectl apply`.
- [KindClusterResource](/reference/api/go/communitytoolkit.aspire.hosting.kind/kindclusterresource.md) -- `handle` - 3 members
- [KindDeployedResource](/reference/api/go/communitytoolkit.aspire.hosting.kind/kinddeployedresource.md) -- `handle` - 1 members
- [KindEnvironmentResource](/reference/api/go/communitytoolkit.aspire.hosting.kind/kindenvironmentresource.md) -- `handle` - 0 members
- [KindHelmChartResource](/reference/api/go/communitytoolkit.aspire.hosting.kind/kindhelmchartresource.md) -- `handle` - 5 members
- [KubernetesAspireDashboardResource](/reference/api/go/communitytoolkit.aspire.hosting.kind/kubernetesaspiredashboardresource.md) -- `handle` - 0 members
- [KubernetesEnvironmentResource](/reference/api/go/communitytoolkit.aspire.hosting.kind/kubernetesenvironmentresource.md) -- `handle` - 1 members

## Enums

- [ClusterLifetime](/reference/api/go/communitytoolkit.aspire.hosting.kind/clusterlifetime.md) -- `enum` - 2 values -- Specifies the lifetime behavior of a Kind cluster relative to the AppHost session.
- [CrdWaitBehavior](/reference/api/go/communitytoolkit.aspire.hosting.kind/crdwaitbehavior.md) -- `enum` - 2 values -- Specifies how Kind manifest resources handle CRD Established-condition wait failures.

## Functions

- [WithKindContainerReference](/reference/api/go/communitytoolkit.aspire.hosting.kind/withkindcontainerreference.md) -- `method` - on `ContainerResource` -- Configures a container resource to reference the Kind cluster by bind-mounting the container-compatible kubeconfig, injecting environment variables, and connecting to the Kind container network.
- [WithKindNetwork](/reference/api/go/communitytoolkit.aspire.hosting.kind/withkindnetwork.md) -- `method` - on `ContainerResource` -- Connects a container resource to the Kind container network, enabling it to communicate with the Kind cluster's API server and nodes.
- [AddKindCluster](/reference/api/go/communitytoolkit.aspire.hosting.kind/addkindcluster.md) -- `method` - on `DistributedApplicationBuilder` -- Adds a Kind cluster resource to the application model.
- [WithClusterLifetime](/reference/api/go/communitytoolkit.aspire.hosting.kind/withclusterlifetime.md) -- `method` - on `IKindResource` -- 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.
- [WithKubernetesVersion](/reference/api/go/communitytoolkit.aspire.hosting.kind/withkubernetesversion.md) -- `method` - on `IKindResource` -- Sets the Kubernetes version for the Kind cluster.
- [WithNodeImage](/reference/api/go/communitytoolkit.aspire.hosting.kind/withnodeimage.md) -- `method` - on `IKindResource` -- Sets the Kind node image for every node in the cluster.
- [WithNodeMount](/reference/api/go/communitytoolkit.aspire.hosting.kind/withnodemount.md) -- `method` - on `IKindResource` -- Adds an extra host mount to every Kind node container.
- [WithWorkerNodes](/reference/api/go/communitytoolkit.aspire.hosting.kind/withworkernodes.md) -- `method` - on `IKindResource` -- Sets the number of worker nodes for the Kind cluster.
- [WithApplyTimeout](/reference/api/go/communitytoolkit.aspire.hosting.kind/withapplytimeout.md) -- `method` - on `K8sManifestResource` -- Sets the maximum time to wait for `kubectl apply` to complete.
- [WithClusterReadyTimeout](/reference/api/go/communitytoolkit.aspire.hosting.kind/withclusterreadytimeout.md) -- `method` - on `K8sManifestResource` -- Sets the maximum time to wait for the Kubernetes API to become reachable before running `kubectl apply`.
- [WithCrdWaitBehavior](/reference/api/go/communitytoolkit.aspire.hosting.kind/withcrdwaitbehavior.md) -- `method` - on `K8sManifestResource` -- Sets whether CRD wait failures fail the manifest resource or are logged as best-effort warnings.
- [WithCrdWaitTimeout](/reference/api/go/communitytoolkit.aspire.hosting.kind/withcrdwaittimeout.md) -- `method` - on `K8sManifestResource` -- Sets the maximum time to wait for applied CRDs to reach the `Established` condition.
- [WithFieldManager](/reference/api/go/communitytoolkit.aspire.hosting.kind/withfieldmanager.md) -- `method` - on `K8sManifestResource` -- Sets the field manager name passed to `kubectl apply --field-manager`.
- [WithRecursive](/reference/api/go/communitytoolkit.aspire.hosting.kind/withrecursive.md) -- `method` - on `K8sManifestResource` -- Recursively applies manifests from subdirectories (maps to `kubectl apply --recursive`). Only meaningful when the manifest path is a directory.
- [WithServerSideApply](/reference/api/go/communitytoolkit.aspire.hosting.kind/withserversideapply.md) -- `method` - on `K8sManifestResource` -- Applies the manifest server-side (maps to `kubectl apply --server-side`). Required for large CRDs that exceed the client-side annotation size limit.
- [AddHelmChart](/reference/api/go/communitytoolkit.aspire.hosting.kind/addhelmchart.md) -- `method` - on `KindClusterResource` -- Adds a Helm chart to be deployed to the Kind cluster.
- [AddManifest](/reference/api/go/communitytoolkit.aspire.hosting.kind/addmanifest.md) -- `method` - on `KindClusterResource` -- Adds a Kubernetes manifest to be applied to the Kind cluster via `kubectl apply`.
- [AddManifestFromContent](/reference/api/go/communitytoolkit.aspire.hosting.kind/addmanifestfromcontent.md) -- `method` - on `KindClusterResource` -- Adds Kubernetes manifest content to be applied to the Kind cluster via `kubectl apply -f -`.
- [WithNamespace](/reference/api/go/communitytoolkit.aspire.hosting.kind/withnamespace.md) -- `method` - on `KindDeployedResource` -- Sets the Kubernetes namespace for the deployment.
- [WithChartVersion](/reference/api/go/communitytoolkit.aspire.hosting.kind/withchartversion.md) -- `method` - on `KindHelmChartResource` -- Sets the chart version (maps to `helm install --version`).
- [WithCrdWaitRetry](/reference/api/go/communitytoolkit.aspire.hosting.kind/withcrdwaitretry.md) -- `method` - on `KindHelmChartResource` -- Retries Helm installs that race newly-created CRDs which have not reached the `Established` condition yet.
- [WithHelmStringValue](/reference/api/go/communitytoolkit.aspire.hosting.kind/withhelmstringvalue.md) -- `method` - on `KindHelmChartResource` -- Sets a Helm value while preserving it as a string (maps to `helm install --set-string key=value`).
- [WithHelmValue](/reference/api/go/communitytoolkit.aspire.hosting.kind/withhelmvalue.md) -- `method` - on `KindHelmChartResource` -- Sets a Helm value (maps to `helm install --set key=value`).
- [WithHelmValuesFile](/reference/api/go/communitytoolkit.aspire.hosting.kind/withhelmvaluesfile.md) -- `method` - on `KindHelmChartResource` -- Adds a values file (maps to `helm install -f path`).
- [WithKind](/reference/api/go/communitytoolkit.aspire.hosting.kind/withkind.md) -- `method` - on `KubernetesEnvironmentResource` -- 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.
- [WithKindClusterReference](/reference/api/go/communitytoolkit.aspire.hosting.kind/withkindclusterreference.md) -- `method` - on `ResourceWithEnvironment` -- Configures a non-container resource to reference the Kind cluster by injecting kubeconfig environment variables.
