Skip to content

Commit 525a36e

Browse files
committed
[zh-cn] resync /concepts/policy/limit-range.md
1 parent 9b529eb commit 525a36e

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

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

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ A _LimitRange_ provides constraints that can:
2828
- Set default request/limit for compute resources in a namespace and automatically inject them to Containers at runtime.
2929
-->
3030

31-
一个 _LimitRange(限制范围)_ 对象提供的限制能够做到:
31+
一个 **LimitRange(限制范围)** 对象提供的限制能够做到:
3232

3333
- 在一个命名空间中实施对每个 Pod 或 Container 最小和最大的资源使用量的限制。
3434
- 在一个命名空间中实施对每个 PersistentVolumeClaim 能申请的最小和最大的存储空间大小的限制。
@@ -40,13 +40,14 @@ A _LimitRange_ provides constraints that can:
4040
4141
LimitRange support has been enabled by default since Kubernetes 1.10.
4242
43-
LimitRange support is enabled by default for many Kubernetes distributions.
43+
A LimitRange is enforced in a particular namespace when there is a
44+
LimitRange object in that namespace.
4445
-->
4546
## 启用 LimitRange
4647

4748
对 LimitRange 的支持自 Kubernetes 1.10 版本默认启用。
4849

49-
LimitRange 支持在很多 Kubernetes 发行版本中也是默认启用的
50+
当某命名空间中有一个 LimitRange 对象时,将在该命名空间中实施 LimitRange 限制
5051

5152
<!--
5253
The name of a LimitRange object must be a valid
@@ -58,7 +59,7 @@ LimitRange 的名称必须是合法的
5859
<!--
5960
### Overview of Limit Range
6061
61-
- The administrator creates one `LimitRange` in one namespace.
62+
- The administrator creates one LimitRange in one namespace.
6263
- Users create resources like Pods, Containers, and PersistentVolumeClaims in the namespace.
6364
- The `LimitRanger` admission controller enforces defaults and limits for all Pods and Containers that do not set compute resource requirements and tracks usage to ensure it does not exceed resource minimum, maximum and ratio defined in any LimitRange present in the namespace.
6465
- If creating or updating a resource (Pod, Container, PersistentVolumeClaim) that violates a LimitRange constraint, the request to the API server will fail with an HTTP status code `403 FORBIDDEN` and a message explaining the constraint that have been violated.
@@ -106,21 +107,21 @@ Neither contention nor changes to a LimitRange will affect already created resou
106107
## {{% heading "whatsnext" %}}
107108

108109
<!--
109-
See [LimitRanger design doc](https://git.k8s.io/community/contributors/design-proposals/resource-management/admission_control_limit_range.md) for more information.
110+
Refer to the [LimitRanger design document](https://git.k8s.io/design-proposals-archive/resource-management/admission_control_limit_range.md) for more information.
110111
-->
111-
参阅 [LimitRanger 设计文档](https://git.k8s.io/community/contributors/design-proposals/resource-management/admission_control_limit_range.md)获取更多信息。
112+
参阅 [LimitRanger 设计文档](https://git.k8s.io/design-proposals-archive/resource-management/admission_control_limit_range.md)获取更多信息。
112113

113114
<!--
114115
For examples on using limits, see:
115116
116-
- See [how to configure minimum and maximum CPU constraints per namespace](/docs/tasks/administer-cluster/manage-resources/cpu-constraint-namespace/).
117-
- See [how to configure minimum and maximum Memory constraints per namespace](/docs/tasks/administer-cluster/manage-resources/memory-constraint-namespace/).
118-
- See [how to configure default CPU Requests and Limits per namespace](/docs/tasks/administer-cluster/manage-resources/cpu-default-namespace/).
119-
- See [how to configure default Memory Requests and Limits per namespace](/docs/tasks/administer-cluster/manage-resources/memory-default-namespace/).
120-
- Check [how to configure minimum and maximum Storage consumption per namespace](/docs/tasks/administer-cluster/limit-storage-consumption/#limitrange-to-limit-requests-for-storage).
121-
- See a [detailed example on configuring quota per namespace](/docs/tasks/administer-cluster/quota-memory-cpu-namespace/).
117+
- [how to configure minimum and maximum CPU constraints per namespace](/docs/tasks/administer-cluster/manage-resources/cpu-constraint-namespace/).
118+
- [how to configure minimum and maximum Memory constraints per namespace](/docs/tasks/administer-cluster/manage-resources/memory-constraint-namespace/).
119+
- [how to configure default CPU Requests and Limits per namespace](/docs/tasks/administer-cluster/manage-resources/cpu-default-namespace/).
120+
- [how to configure default Memory Requests and Limits per namespace](/docs/tasks/administer-cluster/manage-resources/memory-default-namespace/).
121+
- [how to configure minimum and maximum Storage consumption per namespace](/docs/tasks/administer-cluster/limit-storage-consumption/#limitrange-to-limit-requests-for-storage).
122+
- a [detailed example on configuring quota per namespace](/docs/tasks/administer-cluster/manage-resources/quota-memory-cpu-namespace/).
122123
-->
123-
关于使用限值的例子,可参看
124+
关于使用限值的例子,可参阅:
124125

125126
- [如何配置每个命名空间最小和最大的 CPU 约束](/zh-cn/docs/tasks/administer-cluster/manage-resources/cpu-constraint-namespace/)
126127
- [如何配置每个命名空间最小和最大的内存约束](/zh-cn/docs/tasks/administer-cluster/manage-resources/memory-constraint-namespace/)

0 commit comments

Comments
 (0)