Merge pull request #6966 from tengqm/prestop-hook

Document the limitation of preStop hook
This commit is contained in:
Joseph Heck 2018-01-21 18:07:20 -08:00 committed by GitHub
commit 08c6ca2ecd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -74,6 +74,11 @@ Kubernetes' management of the Container blocks until the preStop handler complet
unless the Pod's grace period expires. For more details, see
[Termination of Pods](/docs/user-guide/pods/#termination-of-pods).
**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).
{: .note}
{% endcapture %}