Skip to content

Commit 16e3ad4

Browse files
Update container-lifecycle-hooks.md
Co-authored-by: Ricardo Amaro <[email protected]> Co-authored-by: Ritika <[email protected]>
1 parent 714e053 commit 16e3ad4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

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

+4-5
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,10 @@ When a Container lifecycle management hook is called,
6464
the Kubernetes management system executes the handler according to the hook action,
6565
`httpGet` , `tcpSocket` and `sleep` are executed by the kubelet process, and `exec` is executed in the container.
6666

67-
Hook handler calls are synchronous within the context of the Pod containing the Container.
68-
This means that for a `PostStart` hook,
69-
the Container ENTRYPOINT and hook fire asynchronously.
70-
However, if the hook takes too long to run or hangs,
71-
the Container cannot reach a `running` state.
67+
The `PostStart` hook handler call is initiated when a container is created,
68+
meaning the container ENTRYPOINT and the `PostStart` hook are triggered simultaneously.
69+
However, if the `PostStart` hook takes too long to execute or if it hangs,
70+
it can prevent the container from transitioning to a `running` state.
7271

7372
`PreStop` hooks are not executed asynchronously from the signal to stop the Container; the hook must
7473
complete its execution before the TERM signal can be sent. If a `PreStop` hook hangs during

0 commit comments

Comments
 (0)