LifecycleV1 Properties
Class Properties 2 members
Represents the lifecycle configuration for a Kubernetes Pod container.
Represents the post-start lifecycle event handler in a Kubernetes Pod.
public LifecycleHandlerV1 PostStart { get; set; }Remarks
The
PostStart property defines actions to be executed immediately after a container is started. Actions can include executing a custom command, performing an HTTP GET request, establishing a TCP connection, or introducing a sleep duration before additional operations. It is used to customize and control the behavior of a container upon startup. Gets or sets the pre-stop hook for defining actions to execute before the container stops.
public LifecycleHandlerV1 PreStop { get; set; }Remarks
The PreStop property is used to specify a lifecycle hook that is triggered immediately before the container is terminated. It allows various actions, such as executing a command, sleeping for a certain duration, making an HTTP GET request, or connecting to a TCP socket. This provides a mechanism to perform necessary clean-up tasks or ensure graceful shutdown of the container before it is stopped by the orchestration system.