Merge pull request #23699 from Cweiping/feature/clairly_exec_action
clarify the execution contexts of hook handlers with different action
This commit is contained in:
@@ -56,7 +56,8 @@ Resources consumed by the command are counted against the Container.
|
|||||||
### Hook handler execution
|
### Hook handler execution
|
||||||
|
|
||||||
When a Container lifecycle management hook is called,
|
When a Container lifecycle management hook is called,
|
||||||
the Kubernetes management system executes the handler in the Container registered for that hook.
|
the Kubernetes management system execute the handler according to the hook action,
|
||||||
|
`exec` and `tcpSocket` are executed in the container, and `httpGet` is executed by the kubelet process.
|
||||||
|
|
||||||
Hook handler calls are synchronous within the context of the Pod containing the Container.
|
Hook handler calls are synchronous within the context of the Pod containing the Container.
|
||||||
This means that for a `PostStart` hook,
|
This means that for a `PostStart` hook,
|
||||||
|
|||||||
Reference in New Issue
Block a user