withLifetime

Method
📦 CommunityToolkit.Aspire.Hosting.K3s v13.6.1
interface K3sClusterResource {
// ... omitted for brevity
withLifetime(lifetime: ContainerLifetime): K3sClusterResource;
}

Signature

methodwithLifetimebuilder
Sets the container lifetime for the k3s cluster and all its agent nodes.
withLifetime(lifetime: ContainerLifetime): K3sClusterResource
lifetimeContainerLifetimeThe container lifetime to apply.
K3sClusterResource

Applies to

This method applies to the following types: