[zh]Sync "State that no more than one handler is allowed per lifecycle event #25547"
Sync `State that no more than one handler is allowed per lifecycle event #25547`pull/25556/head
parent
60d1845c05
commit
adc4dd4f35
|
@ -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" %}}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue