Skip to content

Commit 20ec43c

Browse files
authored
Merge pull request #35157 from my-git9/patch-5
[zh-cn] improve container-lifecycle-hooks.md
2 parents 42d7f93 + 98ca349 commit 20ec43c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/zh-cn/docs/concepts/containers/container-lifecycle-hooks.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ parameters are passed to the handler.
7171
而被终止之前,此回调会被调用。
7272
如果容器已经处于已终止或者已完成状态,则对 preStop 回调的调用将失败。
7373
在用来停止容器的 TERM 信号被发出之前,回调必须执行结束。
74-
Pod 的终止宽限周期在 `PreStop` 回调被执行之前即开始计数,所以无论
75-
回调函数的执行结果如何,容器最终都会在 Pod 的终止宽限期内被终止。
74+
Pod 的终止宽限周期在 `PreStop` 回调被执行之前即开始计数,
75+
所以无论回调函数的执行结果如何,容器最终都会在 Pod 的终止宽限期内被终止。
7676
没有参数会被传递给处理程序。
7777

7878
<!--
@@ -113,7 +113,7 @@ the Kubernetes management system executes the handler according to the hook acti
113113
### 回调处理程序执行
114114

115115
当调用容器生命周期管理回调时,Kubernetes 管理系统根据回调动作执行其处理程序,
116-
`httpGet``tcpSocket` 在kubelet 进程执行,而 `exec` 则由容器内执行
116+
`httpGet``tcpSocket` 在 kubelet 进程执行,而 `exec` 则由容器内执行。
117117

118118
<!--
119119
Hook handler calls are synchronous within the context of the Pod containing the Container.
@@ -190,7 +190,7 @@ It is up to the hook implementation to handle this correctly.
190190
-->
191191
### 回调递送保证
192192

193-
回调的递送应该是 *至少一次*,这意味着对于任何给定的事件,
193+
回调的递送应该是**至少一次**,这意味着对于任何给定的事件,
194194
例如 `PostStart``PreStop`,回调可以被调用多次。
195195
如何正确处理被多次调用的情况,是回调实现所要考虑的问题。
196196

0 commit comments

Comments
 (0)