# CommunityToolkit.Aspire.Hosting.Kind

- Module: `CommunityToolkit.Aspire.Hosting.Kind`
- Version: `13.5.1-beta.736`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/3ebe72753ae604ec3c9e343865740e6f8512e1b6)
- Functions: `26`
- Types: `8`

## Types

- [CrdWaitBehavior](/reference/api/typescript/communitytoolkit.aspire.hosting.kind/crdwaitbehavior.md) -- `handle` - 0 members -- Specifies how Kind manifest resources handle CRD Established-condition wait failures.
- [K8sManifestResource](/reference/api/typescript/communitytoolkit.aspire.hosting.kind/k8smanifestresource.md) -- `handle` - 30 members -- A Kubernetes manifest applied to a Kind cluster via `kubectl apply`.
- [KindClusterResource](/reference/api/typescript/communitytoolkit.aspire.hosting.kind/kindclusterresource.md) -- `handle` - 3 members
- [KindDeployedResource](/reference/api/typescript/communitytoolkit.aspire.hosting.kind/kinddeployedresource.md) -- `handle` - 1 members
- [KindEnvironmentResource](/reference/api/typescript/communitytoolkit.aspire.hosting.kind/kindenvironmentresource.md) -- `handle` - 0 members
- [KindHelmChartResource](/reference/api/typescript/communitytoolkit.aspire.hosting.kind/kindhelmchartresource.md) -- `handle` - 5 members

## Functions

- [addHelmChart](/reference/api/typescript/communitytoolkit.aspire.hosting.kind/addhelmchart.md) -- `method` -- Adds a Helm chart to be deployed to the Kind cluster.
- [addKindCluster](/reference/api/typescript/communitytoolkit.aspire.hosting.kind/addkindcluster.md) -- `method` -- Adds a Kind cluster resource to the application model.
- [addManifest](/reference/api/typescript/communitytoolkit.aspire.hosting.kind/addmanifest.md) -- `method` -- Adds a Kubernetes manifest to be applied to the Kind cluster via `kubectl apply`.
- [addManifestFromContent](/reference/api/typescript/communitytoolkit.aspire.hosting.kind/addmanifestfromcontent.md) -- `method` -- Adds Kubernetes manifest content to be applied to the Kind cluster via `kubectl apply -f -`.
- [withApplyTimeout](/reference/api/typescript/communitytoolkit.aspire.hosting.kind/withapplytimeout.md) -- `method` -- Sets the maximum time to wait for `kubectl apply` to complete.
- [withChartVersion](/reference/api/typescript/communitytoolkit.aspire.hosting.kind/withchartversion.md) -- `method` -- Sets the chart version (maps to `helm install --version`).
- [withClusterLifetime](/reference/api/typescript/communitytoolkit.aspire.hosting.kind/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.
- [withClusterReadyTimeout](/reference/api/typescript/communitytoolkit.aspire.hosting.kind/withclusterreadytimeout.md) -- `method` -- Sets the maximum time to wait for the Kubernetes API to become reachable before running `kubectl apply`.
- [withCrdWaitBehavior](/reference/api/typescript/communitytoolkit.aspire.hosting.kind/withcrdwaitbehavior.md) -- `method` -- Sets whether CRD wait failures fail the manifest resource or are logged as best-effort warnings.
- [withCrdWaitRetry](/reference/api/typescript/communitytoolkit.aspire.hosting.kind/withcrdwaitretry.md) -- `method` -- Retries Helm installs that race newly-created CRDs which have not reached the `Established` condition yet.
- [withCrdWaitTimeout](/reference/api/typescript/communitytoolkit.aspire.hosting.kind/withcrdwaittimeout.md) -- `method` -- Sets the maximum time to wait for applied CRDs to reach the `Established` condition.
- [withFieldManager](/reference/api/typescript/communitytoolkit.aspire.hosting.kind/withfieldmanager.md) -- `method` -- Sets the field manager name passed to `kubectl apply --field-manager`.
- [withHelmStringValue](/reference/api/typescript/communitytoolkit.aspire.hosting.kind/withhelmstringvalue.md) -- `method` -- Sets a Helm value while preserving it as a string (maps to `helm install --set-string key=value`).
- [withHelmValue](/reference/api/typescript/communitytoolkit.aspire.hosting.kind/withhelmvalue.md) -- `method` -- Sets a Helm value (maps to `helm install --set key=value`).
- [withHelmValuesFile](/reference/api/typescript/communitytoolkit.aspire.hosting.kind/withhelmvaluesfile.md) -- `method` -- Adds a values file (maps to `helm install -f path`).
- [withKind](/reference/api/typescript/communitytoolkit.aspire.hosting.kind/withkind.md) -- `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.
- [withKindClusterReference](/reference/api/typescript/communitytoolkit.aspire.hosting.kind/withkindclusterreference.md) -- `method` -- Configures a non-container resource to reference the Kind cluster by injecting kubeconfig environment variables.
- [withKindContainerReference](/reference/api/typescript/communitytoolkit.aspire.hosting.kind/withkindcontainerreference.md) -- `method` -- 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/typescript/communitytoolkit.aspire.hosting.kind/withkindnetwork.md) -- `method` -- Connects a container resource to the Kind container network, enabling it to communicate with the Kind cluster's API server and nodes.
- [withKubernetesVersion](/reference/api/typescript/communitytoolkit.aspire.hosting.kind/withkubernetesversion.md) -- `method` -- Sets the Kubernetes version for the Kind cluster.
- [withNamespace](/reference/api/typescript/communitytoolkit.aspire.hosting.kind/withnamespace.md) -- `method` -- Sets the Kubernetes namespace for the deployment.
- [withNodeImage](/reference/api/typescript/communitytoolkit.aspire.hosting.kind/withnodeimage.md) -- `method` -- Sets the Kind node image for every node in the cluster.
- [withNodeMount](/reference/api/typescript/communitytoolkit.aspire.hosting.kind/withnodemount.md) -- `method` -- Adds an extra host mount to every Kind node container.
- [withRecursive](/reference/api/typescript/communitytoolkit.aspire.hosting.kind/withrecursive.md) -- `method` -- Recursively applies manifests from subdirectories (maps to `kubectl apply --recursive`). Only meaningful when the manifest path is a directory.
- [withServerSideApply](/reference/api/typescript/communitytoolkit.aspire.hosting.kind/withserversideapply.md) -- `method` -- Applies the manifest server-side (maps to `kubectl apply --server-side`). Required for large CRDs that exceed the client-side annotation size limit.
- [withWorkerNodes](/reference/api/typescript/communitytoolkit.aspire.hosting.kind/withworkernodes.md) -- `method` -- Sets the number of worker nodes for the Kind cluster.

## Enums

- [ClusterLifetime](/reference/api/typescript/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/typescript/communitytoolkit.aspire.hosting.kind/crdwaitbehavior.md) -- `enum` - 2 values -- Specifies how Kind manifest resources handle CRD Established-condition wait failures.
