Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 1.44 KB

V1Lifecycle.md

File metadata and controls

11 lines (7 loc) · 1.44 KB

V1Lifecycle

Properties

Name Type Description Notes
post_start V1Handler PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks [optional]
pre_stop V1Handler PreStop is called immediately before a container is terminated due to an API request or management event such as liveness probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks [optional]

[Back to Model list] [Back to API list] [Back to README]