Skip to content

Commit 911fcc5

Browse files
authored
Merge pull request #20537 from ZP-AlwaysWin/patch-2
Update init-containers.md
2 parents 7cc3aee + 83415ad commit 911fcc5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/zh/docs/concepts/workloads/pods/init-containers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ Here are some ideas for how to use init containers:
135135

136136
* 在启动应用容器之前等一段时间,使用类似命令:
137137

138-
`sleep 60`
138+
sleep 60
139139

140140
* 克隆 Git 仓库到 {{< glossary_tooltip text="Volume" term_id="volume" >}}。
141141
* 将配置值放到配置文件中,运行模板工具为主应用容器动态地生成配置文件。例如,在配置文件中存放 POD_IP 值,并使用 Jinja 生成主应用配置文件。
@@ -404,7 +404,7 @@ Pod level control groups (cgroups) are based on the effective Pod request and li
404404
给定Init 容器的执行顺序下,资源使用适用于如下规则:
405405

406406
* 所有 Init 容器上定义的任何特定资源的 limit 或 request 的最大值,作为 Pod *有效初始 request/limit*
407-
* Pod 对资源的 *有效 limit/request * 是如下两者的较大者:
407+
* Pod 对资源的 *有效 limit/request* 是如下两者的较大者:
408408
* 所有应用容器对某个资源的 limit/request 之和
409409
* 对某个资源的有效初始 limit/request
410410
* 基于有效 limit/request 完成调度,这意味着 Init 容器能够为初始化过程预留资源,这些资源在 Pod 生命周期过程中并没有被使用。

0 commit comments

Comments
 (0)