# WithNodeMount

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

Adds an extra host mount to every Kind node container.

## Remarks

This configures Kind node-container mounts, which are useful for surfacing host-side assets
such as local manifest directories, certificates, or other development-time inputs to workloads
that later mount paths from the node filesystem.

## Definition

```go
func (IKindResource) WithNodeMount(
    hostPath string,
    containerPath string,
    options ...*WithNodeMountOptions,
) IKindResource
```

## Parameters

- `hostPath` (`string`) -- The path on the host. Relative paths are resolved against the AppHost directory before being written to the Kind config.
- `containerPath` (`string`) -- The absolute path inside the Kind node container.
- `options` (`...*WithNodeMountOptions`) -- optional settings, see [Options](#options)

## Options

Optional parameters are passed in a trailing `options ...*WithNodeMountOptions` argument.

- `ReadOnly` (`*bool`) -- `true` to mount the path read-only.

## Returns

[`IKindResource`](/reference/api/go/communitytoolkit.aspire.hosting.kind/ikindresource.md) -- A reference to the `IResourceBuilder`.

Returns a handle; failures surface later via `Err()`.

## Applies to

- [`KindClusterResource`](/reference/api/go/communitytoolkit.aspire.hosting.kind/kindclusterresource.md)
- [`KindEnvironmentResource`](/reference/api/go/communitytoolkit.aspire.hosting.kind/kindenvironmentresource.md)
