LifecycleV1 Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the lifecycle configuration for a Kubernetes Pod container.
[YamlDotNet.Serialization.YamlSerializable]
public sealed class LifecycleV1
[<YamlDotNet.Serialization.YamlSerializable>]
type LifecycleV1 = class
Public NotInheritable Class LifecycleV1
- Inheritance
-
LifecycleV1
- Attributes
-
YamlDotNet.Serialization.YamlSerializableAttribute
Remarks
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.
Constructors
LifecycleV1() |
Properties
PostStart |
Represents the post-start lifecycle event handler in a Kubernetes Pod. |
PreStop |
Gets or sets the pre-stop hook for defining actions to execute before the container stops. |