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" %}}