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-cn/docs/concepts/workloads/pods/_index.md
+21-15Lines changed: 21 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,17 +85,16 @@ Pod 类似于共享名字空间并共享文件系统卷的一组容器。
85
85
## Using Pods
86
86
87
87
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:
92
88
-->
93
89
## 使用 Pod {#using-pods}
94
90
95
91
下面是一个 Pod 示例,它由一个运行镜像 `nginx:1.14.2` 的容器组成。
96
92
97
-
{{< codenew file="pods/simple-pod.yaml" >}}
93
+
{{% code file="pods/simple-pod.yaml" %}}
98
94
95
+
<!--
96
+
To create the Pod shown above, run the following command:
97
+
-->
99
98
要创建上面显示的 Pod,请运行以下命令:
100
99
101
100
```shell
@@ -115,10 +114,9 @@ Pod 通常不是直接创建的,而是使用工作负载资源创建的。
115
114
### 用于管理 Pod 的工作负载资源 {#workload-resources-for-managing-pods}
116
115
117
116
<!--
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"
120
118
term_id="deployment" >}} or {{< glossary_tooltip text="Job" term_id="job" >}}.
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.
215
211
216
212
Pods natively provide two kinds of shared resources for their constituent containers:
217
213
[networking](#pod-networking) and [storage](#pod-storage).
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.
276
274
277
275
In Kubernetes v{{< skew currentVersion >}}, the value you set for this field has no
278
276
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
611
609
The kubelet automatically tries to create a {{< glossary_tooltip text="mirror Pod" term_id="mirror-pod" >}}
612
610
on the Kubernetes API server for each static Pod.
613
611
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.
615
613
-->
616
614
静态 Pod 通常绑定到某个节点上的 {{< glossary_tooltip text="kubelet" term_id="kubelet" >}}。
617
615
其主要用途是运行自托管的控制面。
@@ -621,6 +619,7 @@ but cannot be controlled from there.
@@ -668,7 +667,7 @@ in the Pod Lifecycle documentation.
668
667
The {{< api-reference page="workload-resources/pod-v1" >}}
669
668
object definition describes the object in detail.
670
669
* [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/)
0 commit comments