Skip to content

Commit eb342fe

Browse files
committed
[zh] sync workloads\pods\_index.md
Signed-off-by: ydFu <[email protected]>
1 parent 21a1e6d commit eb342fe

File tree

1 file changed

+21
-15
lines changed
  • content/zh-cn/docs/concepts/workloads/pods

1 file changed

+21
-15
lines changed

content/zh-cn/docs/concepts/workloads/pods/_index.md

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -85,17 +85,16 @@ Pod 类似于共享名字空间并共享文件系统卷的一组容器。
8585
## Using Pods
8686
8787
The following is an example of a Pod which consists of a container running the image `nginx:1.14.2`.
88-
89-
{{< codenew file="pods/simple-pod.yaml" >}}
90-
91-
To create the Pod shown above, run the following command:
9288
-->
9389
## 使用 Pod {#using-pods}
9490

9591
下面是一个 Pod 示例,它由一个运行镜像 `nginx:1.14.2` 的容器组成。
9692

97-
{{< codenew file="pods/simple-pod.yaml" >}}
93+
{{% code file="pods/simple-pod.yaml" %}}
9894

95+
<!--
96+
To create the Pod shown above, run the following command:
97+
-->
9998
要创建上面显示的 Pod,请运行以下命令:
10099

101100
```shell
@@ -115,10 +114,9 @@ Pod 通常不是直接创建的,而是使用工作负载资源创建的。
115114
### 用于管理 Pod 的工作负载资源 {#workload-resources-for-managing-pods}
116115

117116
<!--
118-
Usually you don't need to create Pods directly, even singleton Pods.
119-
Instead, create them using workload resources such as {{< glossary_tooltip text="Deployment"
117+
Usually you don't need to create Pods directly, even singleton Pods. Instead, create them using workload resources such as {{< glossary_tooltip text="Deployment"
120118
term_id="deployment" >}} or {{< glossary_tooltip text="Job" term_id="job" >}}.
121-
If your Pods need to track state, consider the
119+
If your Pods need to track state, consider the
122120
{{< glossary_tooltip text="StatefulSet" term_id="statefulset" >}} resource.
123121
124122
Pods in a Kubernetes cluster are used in two main ways:
@@ -209,9 +207,7 @@ that updates those files from a remote source, as in the following diagram:
209207
{{< figure src="/zh-cn/docs/images/pod.svg" alt="Pod 创建示意图" class="diagram-medium" >}}
210208

211209
<!--
212-
Some Pods have {{< glossary_tooltip text="init containers" term_id="init-container" >}}
213-
as well as {{< glossary_tooltip text="app containers" term_id="app-container" >}}.
214-
Init containers run and complete before the app containers are started.
210+
Some Pods have {{< glossary_tooltip text="init containers" term_id="init-container" >}} as well as {{< glossary_tooltip text="app containers" term_id="app-container" >}}. Init containers run and complete before the app containers are started.
215211
216212
Pods natively provide two kinds of shared resources for their constituent containers:
217213
[networking](#pod-networking) and [storage](#pod-storage).
@@ -272,7 +268,9 @@ Pod 的名称必须是一个合法的
272268
{{< feature-state state="stable" for_k8s_version="v1.25" >}}
273269

274270
<!--
275-
You should set the `.spec.os.name` field to either `windows` or `linux` to indicate the OS on which you want the pod to run. These two are the only operating systems supported for now by Kubernetes. In future, this list may be expanded.
271+
You should set the `.spec.os.name` field to either `windows` or `linux` to indicate the OS on
272+
which you want the pod to run. These two are the only operating systems supported for now by
273+
Kubernetes. In future, this list may be expanded.
276274
277275
In Kubernetes v{{< skew currentVersion >}}, the value you set for this field has no
278276
effect on {{< glossary_tooltip text="scheduling" term_id="kube-scheduler" >}} of the pods.
@@ -611,7 +609,7 @@ using the kubelet to supervise the individual [control plane components](/docs/c
611609
The kubelet automatically tries to create a {{< glossary_tooltip text="mirror Pod" term_id="mirror-pod" >}}
612610
on the Kubernetes API server for each static Pod.
613611
This means that the Pods running on a node are visible on the API server,
614-
but cannot be controlled from there.
612+
but cannot be controlled from there. See the guide [Create static Pods](/docs/tasks/configure-pod-container/static-pod) for more information.
615613
-->
616614
静态 Pod 通常绑定到某个节点上的 {{< glossary_tooltip text="kubelet" term_id="kubelet" >}}。
617615
其主要用途是运行自托管的控制面。
@@ -621,6 +619,7 @@ but cannot be controlled from there.
621619
`kubelet` 自动尝试为每个静态 Pod 在 Kubernetes API
622620
服务器上创建一个{{< glossary_tooltip text="镜像 Pod" term_id="mirror-pod" >}}。
623621
这意味着在节点上运行的 Pod 在 API 服务器上是可见的,但不可以通过 API 服务器来控制。
622+
有关更多信息,请参阅[创建静态 Pod](/zh-cn/docs/tasks/configure-pod-container/static-pod) 的指南。
624623

625624
{{< note >}}
626625
<!--
@@ -668,7 +667,7 @@ in the Pod Lifecycle documentation.
668667
The {{< api-reference page="workload-resources/pod-v1" >}}
669668
object definition describes the object in detail.
670669
* [The Distributed System Toolkit: Patterns for Composite Containers](/blog/2015/06/the-distributed-system-toolkit-patterns/) explains common layouts for Pods with more than one container.
671-
* Read about [Pod topology spread constraints](/docs/concepts/scheduling-eviction/topology-spread-constraints/).
670+
* Read about [Pod topology spread constraints](/docs/concepts/scheduling-eviction/topology-spread-constraints/)
672671
-->
673672
* 了解 [Pod 生命周期](/zh-cn/docs/concepts/workloads/pods/pod-lifecycle/)
674673
* 了解 [RuntimeClass](/zh-cn/docs/concepts/containers/runtime-class/)
@@ -690,8 +689,15 @@ To understand the context for why Kubernetes wraps a common Pod API in other res
690689
或 {{< glossary_tooltip text="Deployment" term_id="deployment" >}})
691690
封装通用的 Pod API,相关的背景信息可以在前人的研究中找到。具体包括:
692691

692+
<!--
693+
* [Aurora](https://aurora.apache.org/documentation/latest/reference/configuration/#job-schema)
694+
* [Borg](https://research.google.com/pubs/pub43438.html)
695+
* [Marathon](https://mesosphere.github.io/marathon/docs/rest-api.html)
696+
* [Omega](https://research.google/pubs/pub41684/)
697+
* [Tupperware](https://engineering.fb.com/data-center-engineering/tupperware/).
698+
-->
693699
* [Aurora](https://aurora.apache.org/documentation/latest/reference/configuration/#job-schema)
694700
* [Borg](https://research.google.com/pubs/pub43438.html)
695701
* [Marathon](https://mesosphere.github.io/marathon/docs/rest-api.html)
696702
* [Omega](https://research.google/pubs/pub41684/)
697-
* [Tupperware](https://engineering.fb.com/data-center-engineering/tupperware/)
703+
* [Tupperware](https://engineering.fb.com/data-center-engineering/tupperware/)

0 commit comments

Comments
 (0)