Skip to content

Commit 353593a

Browse files
authored
Merge pull request #42489 from asa3311/sync-zh-46
[zh] sync manage-resources/cpu-default-namespace memory-constraint-namespace share-process-namespace
2 parents a1e4da1 + abfa245 commit 353593a

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

content/zh-cn/docs/tasks/administer-cluster/manage-resources/cpu-default-namespace.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ The manifest specifies a default CPU request and a default CPU limit.
7979
以下为 {{< glossary_tooltip text="LimitRange" term_id="limitrange" >}} 的示例清单。
8080
清单中声明了默认 CPU 请求和默认 CPU 限制。
8181

82-
{{% codenew file="admin/resource/cpu-defaults.yaml" %}}
82+
{{% code file="admin/resource/cpu-defaults.yaml" %}}
8383

8484
<!--
8585
Create the LimitRange in the default-cpu-example namespace:
@@ -105,7 +105,7 @@ does not specify a CPU request and limit.
105105

106106
以下为只包含一个容器的 Pod 的清单。该容器没有声明 CPU 请求和限制。
107107

108-
{{% codenew file="admin/resource/cpu-defaults-pod.yaml" %}}
108+
{{% code file="admin/resource/cpu-defaults-pod.yaml" %}}
109109

110110
<!--
111111
Create the Pod.
@@ -155,7 +155,7 @@ specifies a CPU limit, but not a request:
155155

156156
以下为只包含一个容器的 Pod 的清单。该容器声明了 CPU 限制,而没有声明 CPU 请求。
157157

158-
{{% codenew file="admin/resource/cpu-defaults-pod-2.yaml" %}}
158+
{{% code file="admin/resource/cpu-defaults-pod-2.yaml" %}}
159159

160160
<!--
161161
Create the Pod:
@@ -200,7 +200,7 @@ specifies a CPU request, but not a limit:
200200

201201
这里给出了包含一个容器的 Pod 的示例清单。该容器声明了 CPU 请求,而没有声明 CPU 限制。
202202

203-
{{% codenew file="admin/resource/cpu-defaults-pod-3.yaml" %}}
203+
{{% code file="admin/resource/cpu-defaults-pod-3.yaml" %}}
204204

205205
<!--
206206
Create the Pod:

content/zh-cn/docs/tasks/administer-cluster/manage-resources/memory-constraint-namespace.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Here's an example manifest for a LimitRange:
6666

6767
下面是 LimitRange 的示例清单:
6868

69-
{{% codenew file="admin/resource/memory-constraints.yaml" %}}
69+
{{% code file="admin/resource/memory-constraints.yaml" %}}
7070

7171
<!--
7272
Create the LimitRange:
@@ -132,7 +132,7 @@ minimum and maximum memory constraints imposed by the LimitRange.
132132
以下为包含一个容器的 Pod 清单。该容器声明了 600 MiB 的内存请求和 800 MiB 的内存限制,
133133
这些满足了 LimitRange 施加的最小和最大内存约束。
134134

135-
{{% codenew file="admin/resource/memory-constraints-pod.yaml" %}}
135+
{{% code file="admin/resource/memory-constraints-pod.yaml" %}}
136136

137137
<!--
138138
Create the Pod:
@@ -196,7 +196,7 @@ memory request of 800 MiB and a memory limit of 1.5 GiB.
196196

197197
以下为包含一个容器的 Pod 的清单。这个容器声明了 800 MiB 的内存请求和 1.5 GiB 的内存限制。
198198

199-
{{% codenew file="admin/resource/memory-constraints-pod-2.yaml" %}}
199+
{{% code file="admin/resource/memory-constraints-pod-2.yaml" %}}
200200

201201
<!--
202202
Attempt to create the Pod:
@@ -228,7 +228,7 @@ memory request of 100 MiB and a memory limit of 800 MiB.
228228

229229
以下为只有一个容器的 Pod 的清单。这个容器声明了 100 MiB 的内存请求和 800 MiB 的内存限制。
230230

231-
{{% codenew file="admin/resource/memory-constraints-pod-3.yaml" %}}
231+
{{% code file="admin/resource/memory-constraints-pod-3.yaml" %}}
232232

233233
<!--
234234
Attempt to create the Pod:
@@ -260,7 +260,7 @@ specify a memory request, and it does not specify a memory limit.
260260

261261
以下为只有一个容器的 Pod 清单。该容器没有声明内存请求,也没有声明内存限制。
262262

263-
{{% codenew file="admin/resource/memory-constraints-pod-4.yaml" %}}
263+
{{% code file="admin/resource/memory-constraints-pod-4.yaml" %}}
264264

265265
<!--
266266
Create the Pod:

content/zh-cn/docs/tasks/configure-pod-container/share-process-namespace.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Process namespace sharing is enabled using the `shareProcessNamespace` field of
5050
-->
5151
使用 Pod `.spec` 中的 `shareProcessNamespace` 字段可以启用进程命名空间共享。例如:
5252

53-
{{< codenew file="pods/share-process-namespace.yaml" >}}
53+
{{% code file="pods/share-process-namespace.yaml" %}}
5454

5555
<!--
5656
1. Create the pod `nginx` on your cluster:

0 commit comments

Comments
 (0)