Watch Aspire live streamsDocsTry Aspire

withNodeMount

Method
📦 CommunityToolkit.Aspire.Hosting.Kind v13.5.1-beta.895
interface KindClusterResource {
// ... omitted for brevity
withNodeMount(
hostPath: string,
containerPath: string,
readOnly?: boolean): IKindResource;
}

Signature

methodwithNodeMountbuilder
Adds an extra host mount to every Kind node container.
withNodeMount(
hostPath: string,
containerPath: string,
readOnly?: boolean): IKindResource
hostPathstringThe path on the host. Relative paths are resolved against the AppHost directory before being written to the Kind config.
containerPathstringThe absolute path inside the Kind node container.
readOnlybooleanoptional= False`true` to mount the path read-only.
IKindResource

Applies to

This method applies to the following types: