Skip to content

Commit 892aedc

Browse files
committed
Address review comments
1 parent bfea67a commit 892aedc

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

content/en/docs/concepts/containers/container-lifecycle-hooks.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,12 @@ No parameters are passed to the handler.
3737
`PreStop`
3838

3939
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.
4546

4647
A more detailed description of the termination behavior can be found in
4748
[Termination of Pods](/docs/concepts/workloads/pods/pod-lifecycle/#pod-termination).

0 commit comments

Comments
 (0)