Skip to content

Commit

Permalink
Merge pull request #28241 from HongjiangHuang/fix/init-container-zh
Browse files Browse the repository at this point in the history
[zh]Update init-containers.md
  • Loading branch information
k8s-ci-robot authored Jun 3, 2021
2 parents b032545 + a64a4fd commit 1564caf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion content/zh/docs/concepts/workloads/pods/init-containers.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ If a Pod's init container fails, the kubelet repeatedly restarts that init conta
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.
-->
如果 Pod 的 Init 容器失败,kubelet 会不断地重启该 Init 容器直到该容器成功为止。
然而,如果 Pod 对应的 `restartPolicy` 值为 "Never",Kubernetes 不会重新启动 Pod。
然而,如果 Pod 对应的 `restartPolicy` 值为 "Never",并且 Pod 的 Init 容器失败,
则 Kubernetes 会将整个 Pod 状态设置为失败。

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

0 comments on commit 1564caf

Please sign in to comment.