From 5fb0dc2379a60d9bfb4da62ff506505547257a59 Mon Sep 17 00:00:00 2001 From: 0xff-dev Date: Fri, 29 Sep 2023 16:01:05 +0800 Subject: [PATCH] [zh] sync policy/limit-range.md --- content/zh-cn/docs/concepts/policy/limit-range.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/zh-cn/docs/concepts/policy/limit-range.md b/content/zh-cn/docs/concepts/policy/limit-range.md index 62e0f1ebae..a03811ecb7 100644 --- a/content/zh-cn/docs/concepts/policy/limit-range.md +++ b/content/zh-cn/docs/concepts/policy/limit-range.md @@ -103,14 +103,14 @@ For example, you define a `LimitRange` with this manifest: 例如,你使用如下清单定义一个 `LimitRange`: -{{% code file="concepts/policy/limit-range/problematic-limit-range.yaml" %}} +{{% code_sample file="concepts/policy/limit-range/problematic-limit-range.yaml" %}} 以及一个声明 CPU 资源请求为 `700m` 但未声明限制值的 Pod: -{{% code file="concepts/policy/limit-range/example-conflict-with-limitrange-cpu.yaml" %}} +{{% code_sample file="concepts/policy/limit-range/example-conflict-with-limitrange-cpu.yaml" %}} 如果你同时设置了 `request` 和 `limit`,那么即使使用相同的 `LimitRange`,新 Pod 也会被成功调度: -{{% code file="concepts/policy/limit-range/example-no-conflict-with-limitrange-cpu.yaml" %}} +{{% code_sample file="concepts/policy/limit-range/example-no-conflict-with-limitrange-cpu.yaml" %}}