Merge pull request #25556 from yuandongx/patch-1

[zh]Sync En, "State that no more than one handler is allowed per lifecycl…
This commit is contained in:
Kubernetes Prow Robot
2020-12-14 01:45:28 -08:00
committed by GitHub
@@ -15,11 +15,11 @@ weight: 140
This page shows how to attach handlers to Container lifecycle events. Kubernetes supports This page shows how to attach handlers to Container lifecycle events. Kubernetes supports
the postStart and preStop events. Kubernetes sends the postStart event immediately the postStart and preStop events. Kubernetes sends the postStart event immediately
after a Container is started, and it sends the preStop event immediately before the after a Container is started, and it sends the preStop event immediately before the
Container is terminated. Container is terminated.A Container may specify one handler per event.
--> -->
这个页面将演示如何为容器的生命周期事件挂接处理函数。Kubernetes 支持 postStart 和 preStop 事件。 这个页面将演示如何为容器的生命周期事件挂接处理函数。Kubernetes 支持 postStart 和 preStop 事件。
当一个容器启动后,Kubernetes 将立即发送 postStart 事件;在容器被终结之前, 当一个容器启动后,Kubernetes 将立即发送 postStart 事件;在容器被终结之前,
Kubernetes 将发送一个 preStop 事件。 Kubernetes 将发送一个 preStop 事件。容器可以为每个事件指定一个处理程序。
## {{% heading "prerequisites" %}} ## {{% heading "prerequisites" %}}