K3sClusterResource.withDataVolume

Method
📦 CommunityToolkit.Aspire.Hosting.K3s v13.6.1
interface K3sClusterResource {
// ... omitted for brevity
withDataVolume(name?: string): K3sClusterResource;
}

Signature

methodwithDataVolumebuilder
Mounts a named Docker volume at the k3s data directory so cluster state persists across AppHost restarts.
withDataVolume(name?: string): K3sClusterResource
namestringoptionalOptional volume name. When `null` (the default) a name is generated from the application and resource names.
K3sClusterResource

Defined on

This method is defined on the following type: