Skip to content

Commit

Permalink
[zh] sync policy/limit-range.md
Browse files Browse the repository at this point in the history
  • Loading branch information
0xff-dev committed Sep 29, 2023
1 parent 1cd571b commit 5fb0dc2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/zh-cn/docs/concepts/policy/limit-range.md
Original file line number Diff line number Diff line change
Expand Up @@ -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" %}}

<!--
along with a Pod that declares a CPU resource request of `700m`, but not a limit:
-->
以及一个声明 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" %}}

<!--
then that Pod will not be scheduled, failing with an error similar to:
Expand All @@ -126,7 +126,7 @@ If you set both `request` and `limit`, then that new Pod will be scheduled succe
-->
如果你同时设置了 `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" %}}

<!--
## Example resource constraints
Expand Down

0 comments on commit 5fb0dc2

Please sign in to comment.