Merge pull request #35595 from YuikoTakada/fix_prestop

fix doc about preStop hook
This commit is contained in:
Kubernetes Prow Robot 2023-01-02 23:21:31 -08:00 committed by GitHub
commit 7cf0740591
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -78,9 +78,9 @@ unless the Pod's grace period expires. For more details, see
[Pod Lifecycle](/docs/concepts/workloads/pods/pod-lifecycle/).
{{< note >}}
Kubernetes only sends the preStop event when a Pod is *terminated*.
This means that the preStop hook is not invoked when the Pod is *completed*.
This limitation is tracked in [issue #55087](https://github.com/kubernetes/kubernetes/issues/55807).
Kubernetes only sends the preStop event when a Pod or a container in the Pod is *terminated*.
This means that the preStop hook is not invoked when the Pod is *completed*.
About this limitation, please see [Container hooks](docs/concepts/containers/container-lifecycle-hooks/#container-hooks) for the detail.
{{< /note >}}