You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/zh/docs/concepts/workloads/pods/init-containers.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ Init 容器与普通的容器非常像,除了如下两点:
54
54
* 每个都必须在下一个启动之前成功完成。
55
55
56
56
<!--
57
-
If a Pod's init container fails, the kubelet repeatedly restarts that init container until it succeeds.
57
+
If a Pod's init container fails, the kubelet repeatedly restarts that init container until it succeeds.
58
58
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.
59
59
-->
60
60
如果 Pod 的 Init 容器失败,kubelet 会不断地重启该 Init 容器直到该容器成功为止。
@@ -391,10 +391,10 @@ myapp-pod 1/1 Running 0 9m
391
391
392
392
<!--
393
393
This simple example should provide some inspiration for you to create your own
394
-
init containers. [What's next](#whats-next) contains a link to a more detailed example.
394
+
init containers. [What's next](#what-s-next) contains a link to a more detailed example.
395
395
-->
396
396
这个简单例子应该能为你创建自己的 Init 容器提供一些启发。
397
-
[接下来](#whats-next)节提供了更详细例子的链接。
397
+
[接下来](#what-s-next)节提供了更详细例子的链接。
398
398
399
399
<!--
400
400
## Detailed behavior
@@ -546,4 +546,3 @@ Pod 不会被重启。这一行为适用于 Kubernetes v1.20 及更新版本。
0 commit comments