Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

ClusterLifetime

Enum
📦 CommunityToolkit.Aspire.Hosting.Kind v13.5.1-beta.895

Specifies the lifetime behavior of a Kind cluster relative to the AppHost session.

type ClusterLifetime string
const (
ClusterLifetimeSession ClusterLifetime = "Session"
ClusterLifetimePersistent ClusterLifetime = "Persistent"
)

Values

ClusterLifetimeSession"Session"
The cluster is deleted when the AppHost shuts down. This is the default behavior.
ClusterLifetimePersistent"Persistent"
The cluster survives AppHost restarts and is reused on the next startup.