# ClusterLifetime

- Module: [CommunityToolkit.Aspire.Hosting.Kind](/reference/api/go/communitytoolkit.aspire.hosting.kind.md)
- Version: `13.5.1-beta.895`
- Kind: `enum`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/2c26a4c9649531d17fce3cbc4c5dea00d61d279c)

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

## Definition

```go
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.
