Skip to content
Docs Try Aspire

LifecycleHandlerV1

Class sealed net10.0
📦 Aspire.Hosting.Kubernetes v13.1.2-preview.1.26125.13
Represents a handler for Kubernetes lifecycle events.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class LifecycleHandlerV1
{
// ...
}
A LifecycleHandlerV1 defines actions to be executed as part of the Kubernetes Pod lifecycle, such as pre-stop and post-start events. It supports multiple action types, including executing a command, sleeping for a duration, making HTTP GET requests, or establishing TCP socket connections.
View all constructors
Execget; set
Represents an action that executes a command within a container.
HttpGetget; set
Represents the HTTP GET action associated with a lifecycle handler in Kubernetes resources.
Sleepget; set
Gets or sets a sleep action configuration for a lifecycle handler.
TcpSocketget; set
Gets or sets the TcpSocketActionV1 property.
View all properties