Document the limitation of preStop hook

Closes: #6965
This commit is contained in:
Qiming Teng
2018-01-15 10:31:10 +08:00
parent 0968a20d64
commit e9d2a374a2
@@ -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 %}