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
A multi-container Pod that contains a file puller and a
114
-
web server that uses a persistent volume for shared storage between the containers.
166
+
{{< figure src="/images/docs/pod.svg" title="Figure 1." class="diagram-medium" caption="A multi-container Pod that contains a file puller [sidecar](/docs/concepts/workloads/pods/sidecar-containers/) and a web server. The Pod uses an [ephemeral `emptyDir` volume](/docs/concepts/storage/volumes/#emptydir) for shared storage between the containers." >}}
115
167
-->
116
-
一个包含多个容器的 Pod 中包含一个用来拉取文件的程序和一个 Web 服务器,
117
-
均使用持久卷作为容器间共享的存储。
168
+
{{< figure src="/images/docs/pod.svg" title="图 1" class="diagram-medium" caption="一个包含文件拉取程序 [Sidecar(边车)](/zh-cn/docs/concepts/workloads/pods/sidecar-containers/) 和 Web 服务器的多容器 Pod。此 Pod 使用[临时 `emptyDir` 卷](/zh-cn/docs/concepts/storage/volumes/#emptydir)作为容器之间的共享存储。" >}}
169
+
118
170
119
171
<!--
120
172
## Pod phase
@@ -126,12 +178,6 @@ object, which has a `phase` field.
126
178
The phase of a Pod is a simple, high-level summary of where the Pod is in its
127
179
lifecycle. The phase is not intended to be a comprehensive rollup of observations
128
180
of container or Pod state, nor is it intended to be a comprehensive state machine.
129
-
130
-
The number and meanings of Pod phase values are tightly guarded.
131
-
Other than what is documented here, nothing should be assumed about Pods that
132
-
have a given `phase` value.
133
-
134
-
Here are the possible values for `phase`:
135
181
-->
136
182
## Pod 阶段 {#pod-phase}
137
183
@@ -142,6 +188,13 @@ Pod 的 `status` 字段是一个
142
188
Pod 的阶段(Phase)是 Pod 在其生命周期中所处位置的简单宏观概述。
143
189
该阶段并不是对容器或 Pod 状态的综合汇总,也不是为了成为完整的状态机。
144
190
191
+
<!--
192
+
The number and meanings of Pod phase values are tightly guarded.
193
+
Other than what is documented here, nothing should be assumed about Pods that
194
+
have a given `phase` value.
195
+
196
+
Here are the possible values for `phase`:
197
+
-->
145
198
Pod 阶段的数量和含义是严格定义的。
146
199
除了本文档中列举的内容外,不应该再假定 Pod 有其他的 `phase` 值。
147
200
@@ -153,15 +206,15 @@ Value | Description
153
206
`Pending` | The Pod has been accepted by the Kubernetes cluster, but one or more of the containers has not been set up and made ready to run. This includes time a Pod spends waiting to be scheduled as well as the time spent downloading container images over the network.
154
207
`Running` | The Pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting.
155
208
`Succeeded` | All containers in the Pod have terminated in success, and will not be restarted.
156
-
`Failed` | All containers in the Pod have terminated, and at least one container has terminated in failure. That is, the container either exited with non-zero status or was terminated by the system.
209
+
`Failed` | All containers in the Pod have terminated, and at least one container has terminated in failure. That is, the container either exited with non-zero status or was terminated by the system, and is not set for automatic restarting.
157
210
`Unknown` | For some reason the state of the Pod could not be obtained. This phase typically occurs due to an error in communicating with the node where the Pod should be running.
158
211
-->
159
212
取值 | 描述
160
213
:-----|:-----------
161
214
`Pending`(悬决)| Pod 已被 Kubernetes 系统接受,但有一个或者多个容器尚未创建亦未运行。此阶段包括等待 Pod 被调度的时间和通过网络下载镜像的时间。
162
215
`Running`(运行中) | Pod 已经绑定到了某个节点,Pod 中所有的容器都已被创建。至少有一个容器仍在运行,或者正处于启动或重启状态。
163
216
`Succeeded`(成功) | Pod 中的所有容器都已成功终止,并且不会再重启。
164
-
`Failed`(失败) | Pod 中的所有容器都已终止,并且至少有一个容器是因为失败终止。也就是说,容器以非 0 状态退出或者被系统终止。
217
+
`Failed`(失败) | Pod 中的所有容器都已终止,并且至少有一个容器是因为失败终止。也就是说,容器以非 0 状态退出或者被系统终止,且未被设置为自动重启。
165
218
`Unknown`(未知) | 因为某些原因无法取得 Pod 的状态。这种情况通常是因为与 Pod 所在主机通信失败。
166
219
167
220
{{< note >}}
@@ -661,20 +714,6 @@ condition to `True` before sandbox creation and network configuration starts.
661
714
对于没有 Init 容器的 Pod,kubelet 会在创建沙箱和网络配置开始之前将
662
715
`Initialized` 状况设置为 `True`。
663
716
664
-
<!--
665
-
### Pod scheduling readiness {#pod-scheduling-readiness-gate}
0 commit comments