From adc4dd4f35fab1220257aed3e1eeee9bb25f7ea6 Mon Sep 17 00:00:00 2001 From: Xu Yuandong <786018072@qq.com> Date: Fri, 11 Dec 2020 10:17:33 +0800 Subject: [PATCH] [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` --- .../configure-pod-container/attach-handler-lifecycle-event.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/zh/docs/tasks/configure-pod-container/attach-handler-lifecycle-event.md b/content/zh/docs/tasks/configure-pod-container/attach-handler-lifecycle-event.md index a4ead7966a..41f3a64f3b 100644 --- a/content/zh/docs/tasks/configure-pod-container/attach-handler-lifecycle-event.md +++ b/content/zh/docs/tasks/configure-pod-container/attach-handler-lifecycle-event.md @@ -15,11 +15,11 @@ weight: 140 This page shows how to attach handlers to Container lifecycle events. Kubernetes supports 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 -Container is terminated. +Container is terminated.A Container may specify one handler per event. --> 这个页面将演示如何为容器的生命周期事件挂接处理函数。Kubernetes 支持 postStart 和 preStop 事件。 当一个容器启动后,Kubernetes 将立即发送 postStart 事件;在容器被终结之前, -Kubernetes 将发送一个 preStop 事件。 +Kubernetes 将发送一个 preStop 事件。容器可以为每个事件指定一个处理程序。 ## {{% heading "prerequisites" %}}