File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
content/en/docs/concepts/containers Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -37,11 +37,12 @@ No parameters are passed to the handler.
37
37
` PreStop `
38
38
39
39
This hook is called immediately before a container is terminated due to an API request or management
40
- event such as a liveness/startup probe failure, preemption, resource contention and others. This
41
- hook is not called if the container crashes or exits. The Pod's termination grace period countdown
42
- begins before the ` PreStop ` hook is executed. Regardless of the outcome of the handler, the
43
- container will eventually terminate within the Pod's termination grace period. No parameters are
44
- passed to the handler.
40
+ event such as a liveness/startup probe failure, preemption, resource contention and others. A call
41
+ to the ` PreStop ` hook fails if the container is already in a terminated or completed state and the
42
+ hook must complete before the TERM signal to stop the container can be sent. The Pod's termination
43
+ grace period countdown begins before the ` PreStop ` hook is executed so regardless of the outcome of
44
+ the handler, the container will eventually terminate within the Pod's termination grace period. No
45
+ parameters are passed to the handler.
45
46
46
47
A more detailed description of the termination behavior can be found in
47
48
[ Termination of Pods] ( /docs/concepts/workloads/pods/pod-lifecycle/#pod-termination ) .
You can’t perform that action at this time.
0 commit comments