# KubernetesEnvironmentKindExtensions Methods

- Package: [CommunityToolkit.Aspire.Hosting.Kind](/reference/api/csharp/communitytoolkit.aspire.hosting.kind.md)
- Type: [KubernetesEnvironmentKindExtensions](/reference/api/csharp/communitytoolkit.aspire.hosting.kind/kubernetesenvironmentkindextensions.md)
- Kind: `Methods`
- Members: `1`

Extension methods for configuring a `Kubernetes.KubernetesEnvironmentResource` to deploy to a local Kind cluster.

<a id="withkind"></a>
<a id="withkind-iresourcebuilder-kubernetesenvironmentresource"></a>

## WithKind(IResourceBuilder<KubernetesEnvironmentResource>)

- Name: `WithKind(IResourceBuilder<KubernetesEnvironmentResource>)`
- Modifiers: `extension`
- Returns: `IResourceBuilder<KindEnvironmentResource>`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d479e13473b1d29d06b974f144a0049289a3cb5c/src/CommunityToolkit.Aspire.Hosting.Kind/KubernetesEnvironmentKindExtensions.cs#L34-L59)

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.

```csharp
public static class KubernetesEnvironmentKindExtensions
{
    public static IResourceBuilder<KindEnvironmentResource> WithKind(
        this IResourceBuilder<KubernetesEnvironmentResource> builder)
    {
        // ...
    }
}
```

## Parameters

- `builder` (`IResourceBuilder<KubernetesEnvironmentResource>`)
  The Kubernetes environment resource builder.

## Returns

`IResourceBuilder<KindEnvironmentResource>` -- A reference to the `ApplicationModel.IResourceBuilder`1` for further Kind-specific configuration.

## ATS metadata

### ATS export

- Available to Polyglot AppHosts through the Aspire Type System.
