Skip to content

Commit 1564caf

Browse files
authored
Merge pull request #28241 from HongjiangHuang/fix/init-container-zh
[zh]Update init-containers.md
2 parents b032545 + a64a4fd commit 1564caf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ If a Pod's init container fails, the kubelet repeatedly restarts that init conta
5858
However, if the Pod has a `restartPolicy` of Never, and an init container fails during startup of that Pod, Kubernetes treats the overall Pod as failed.
5959
-->
6060
如果 Pod 的 Init 容器失败,kubelet 会不断地重启该 Init 容器直到该容器成功为止。
61-
然而,如果 Pod 对应的 `restartPolicy` 值为 "Never",Kubernetes 不会重新启动 Pod。
61+
然而,如果 Pod 对应的 `restartPolicy` 值为 "Never",并且 Pod 的 Init 容器失败,
62+
则 Kubernetes 会将整个 Pod 状态设置为失败。
6263

6364
<!--
6465
To specify an init container for a Pod, add the `initContainers` field into

0 commit comments

Comments
 (0)