Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

LifecycleV1

Classsealednet10.0
📦 Aspire.Hosting.Kubernetes v13.6.0-preview.1.26478.8
Represents the lifecycle configuration for a Kubernetes Pod container.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class LifecycleV1
{
// ...
}
The LifecycleV1 class defines the lifecycle events for a container, which include hooks or actions that can be triggered at specific points during the container's lifecycle. It allows specifying custom logic to be executed either before the container is terminated (preStop) or after the container is started (postStart). This configuration is particularly useful for managing cleanup operations, initialization tasks, or other custom behaviors during these lifecycle phases.
View all constructors
View all properties