Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithLifetime

Method
📦 CommunityToolkit.Aspire.Hosting.K3s v13.6.1
func (K3sClusterResource) 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

The same builder, for chaining.

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

Applies to

This method applies to the following types: