Skip to content

Commit fd033f4

Browse files
authored
Merge pull request #43255 from 0xff-dev/policy-limit-range
[zh] sync policy/limit-range.md
2 parents a9e769c + 5fb0dc2 commit fd033f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/zh-cn/docs/concepts/policy/limit-range.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,14 @@ For example, you define a `LimitRange` with this manifest:
103103

104104
例如,你使用如下清单定义一个 `LimitRange`
105105

106-
{{% code file="concepts/policy/limit-range/problematic-limit-range.yaml" %}}
106+
{{% code_sample file="concepts/policy/limit-range/problematic-limit-range.yaml" %}}
107107

108108
<!--
109109
along with a Pod that declares a CPU resource request of `700m`, but not a limit:
110110
-->
111111
以及一个声明 CPU 资源请求为 `700m` 但未声明限制值的 Pod:
112112

113-
{{% code file="concepts/policy/limit-range/example-conflict-with-limitrange-cpu.yaml" %}}
113+
{{% code_sample file="concepts/policy/limit-range/example-conflict-with-limitrange-cpu.yaml" %}}
114114

115115
<!--
116116
then that Pod will not be scheduled, failing with an error similar to:
@@ -126,7 +126,7 @@ If you set both `request` and `limit`, then that new Pod will be scheduled succe
126126
-->
127127
如果你同时设置了 `request``limit`,那么即使使用相同的 `LimitRange`,新 Pod 也会被成功调度:
128128

129-
{{% code file="concepts/policy/limit-range/example-no-conflict-with-limitrange-cpu.yaml" %}}
129+
{{% code_sample file="concepts/policy/limit-range/example-no-conflict-with-limitrange-cpu.yaml" %}}
130130

131131
<!--
132132
## Example resource constraints

0 commit comments

Comments
 (0)