Skip to content

Commit 35420c5

Browse files
committed
sync quality-service-pod resize-container-resources update-api-object-kubectl-patch
1 parent 50a57a4 commit 35420c5

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

content/zh-cn/docs/tasks/configure-pod-container/quality-service-pod.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ memory request, both equal to 200 MiB. The Container has a CPU limit and a CPU r
9595
下面是包含一个 Container 的 Pod 清单。该 Container 设置了内存请求和内存限制,值都是 200 MiB。
9696
该 Container 设置了 CPU 请求和 CPU 限制,值都是 700 milliCPU:
9797

98-
{{< codenew file="pods/qos/qos-pod.yaml" >}}
98+
{{% code file="pods/qos/qos-pod.yaml" %}}
9999

100100
<!--
101101
Create the Pod:
@@ -186,7 +186,7 @@ and a memory request of 100 MiB.
186186
下面是包含一个 Container 的 Pod 清单。该 Container 设置的内存限制为 200 MiB,
187187
内存请求为 100 MiB。
188188

189-
{{< codenew file="pods/qos/qos-pod-2.yaml" >}}
189+
{{% code file="pods/qos/qos-pod-2.yaml" %}}
190190

191191
<!--
192192
Create the Pod:
@@ -256,7 +256,7 @@ limits or requests:
256256

257257
下面是包含一个 Container 的 Pod 清单。该 Container 没有设置内存和 CPU 限制或请求。
258258

259-
{{< codenew file="pods/qos/qos-pod-3.yaml" >}}
259+
{{% code file="pods/qos/qos-pod-3.yaml" %}}
260260

261261
<!--
262262
Create the Pod:
@@ -316,7 +316,7 @@ request of 200 MiB. The other Container does not specify any requests or limits.
316316
下面是包含两个 Container 的 Pod 清单。一个 Container 指定内存请求为 200 MiB。
317317
另外一个 Container 没有指定任何请求或限制。
318318

319-
{{< codenew file="pods/qos/qos-pod-4.yaml" >}}
319+
{{% code file="pods/qos/qos-pod-4.yaml" %}}
320320

321321
<!--
322322
Notice that this Pod meets the criteria for QoS class `Burstable`. That is, it does not meet the

content/zh-cn/docs/tasks/configure-pod-container/resize-container-resources.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ Consider the following manifest for a Pod that has one Container.
166166
167167
考虑以下包含一个容器的 Pod 的清单。
168168
169-
{{< codenew file="pods/qos/qos-pod-5.yaml" >}}
169+
{{% code file="pods/qos/qos-pod-5.yaml" %}}
170170
171171
<!--
172172
Create the pod in the `qos-example` namespace:

content/zh-cn/docs/tasks/manage-kubernetes-objects/update-api-object-kubectl-patch.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ is a Pod that has one container:
3737

3838
下面是具有两个副本的 Deployment 的配置文件。每个副本是一个 Pod,有一个容器:
3939

40-
{{% codenew file="application/deployment-patch.yaml" %}}
40+
{{% code file="application/deployment-patch.yaml" %}}
4141

4242
<!--
4343
Create the Deployment:
@@ -418,7 +418,7 @@ Here's the configuration file for a Deployment that uses the `RollingUpdate` str
418418
-->
419419
## 使用带 retainKeys 策略的策略合并 patch 更新 Deployment {#use-strategic-merge-patch-to-update-a-deployment-using-the-retainkeys-strategy}
420420

421-
{{% codenew file="application/deployment-retainkeys.yaml" %}}
421+
{{% code file="application/deployment-retainkeys.yaml" %}}
422422

423423
<!--
424424
Create the deployment:
@@ -651,7 +651,7 @@ Deployment 是支持这些子资源的其中一个例子。
651651

652652
下面是有两个副本的 Deployment 的清单。
653653

654-
{{% codenew file="application/deployment.yaml" %}}
654+
{{% code file="application/deployment.yaml" %}}
655655

656656
<!--
657657
Create the Deployment:

0 commit comments

Comments
 (0)