1
1
---
2
- title : 限制存储消耗
2
+ title : 限制存储使用量
3
3
content_type : task
4
4
---
5
5
<!--
@@ -12,14 +12,14 @@ content_type: task
12
12
<!--
13
13
This example demonstrates how to limit the amount of storage consumed in a namespace
14
14
-->
15
- 此示例演示了如何限制一个名字空间中的存储使用量 。
15
+ 此示例演示如何限制一个名字空间中的存储使用量 。
16
16
17
17
<!--
18
18
The following resources are used in the demonstration: [ResourceQuota](/docs/concepts/policy/resource-quotas/),
19
19
[LimitRange](/docs/tasks/administer-cluster/memory-default-namespace/),
20
20
and [PersistentVolumeClaim](/docs/concepts/storage/persistent-volumes/).
21
21
-->
22
- 演示中用到了以下资源:[ ResourceQuota] ( /zh-cn/docs/concepts/policy/resource-quotas/ ) ,
22
+ 演示中用到了以下资源:[ ResourceQuota] ( /zh-cn/docs/concepts/policy/resource-quotas/ ) 、
23
23
[ LimitRange] ( /zh-cn/docs/tasks/administer-cluster/manage-resources/memory-default-namespace/ ) 和
24
24
[ PersistentVolumeClaim] ( /zh-cn/docs/concepts/storage/persistent-volumes/ ) 。
25
25
@@ -32,18 +32,18 @@ and [PersistentVolumeClaim](/docs/concepts/storage/persistent-volumes/).
32
32
<!--
33
33
## Scenario: Limiting Storage Consumption
34
34
-->
35
- ## 场景:限制存储消耗
35
+ ## 场景:限制存储使用量
36
36
37
37
<!--
38
38
The cluster-admin is operating a cluster on behalf of a user population and the admin wants to control
39
39
how much storage a single namespace can consume in order to control cost.
40
40
-->
41
- 集群管理员代表用户群操作集群,管理员希望控制单个名称空间可以消耗多少存储空间以控制成本 。
41
+ 集群管理员代表用户群操作集群,该管理员希望控制单个名字空间可以消耗多少存储空间以控制成本 。
42
42
43
43
<!--
44
44
The admin would like to limit:
45
45
-->
46
- 管理员想要限制 :
46
+ 该管理员想要限制 :
47
47
48
48
<!--
49
49
1. The number of persistent volume claims in a namespace
@@ -101,18 +101,18 @@ AWS EBS volumes have a 1Gi minimum requirement.
101
101
Admins can limit the number of PVCs in a namespace as well as the cumulative capacity of those PVCs. New PVCs that exceed
102
102
either maximum value will be rejected.
103
103
-->
104
- 管理员可以限制某个名字空间中的 PVCs 个数以及这些 PVCs 的累计容量。
105
- 新 PVCs 请求如果超过任一上限值将被拒绝 。
104
+ 管理员可以限制某个名字空间中的 PVC 个数以及这些 PVC 的累计容量。
105
+ 如果 PVC 的数目超过任一上限值,新的 PVC 将被拒绝 。
106
106
107
107
<!--
108
108
In this example, a 6th PVC in the namespace would be rejected because it exceeds the maximum count of 5. Alternatively,
109
109
a 5Gi maximum quota when combined with the 2Gi max limit above, cannot have 3 PVCs where each has 2Gi. That would be 6Gi requested
110
110
for a namespace capped at 5Gi.
111
111
-->
112
112
在此示例中,名字空间中的第 6 个 PVC 将被拒绝,因为它超过了最大计数 5。
113
- 或者,当与上面的 2Gi 最大容量限制结合在一起时,意味着 5Gi 的最大配额
114
- 不能支持 3 个都是 2Gi 的 PVC。
115
- 后者实际上是向名字空间请求 6Gi 容量,而该命令空间已经设置上限为 5Gi。
113
+ 或者,当与上面的 2Gi 最大容量限制结合在一起时,
114
+ 意味着 5Gi 的最大配额不能支持 3 个都是 2Gi 的 PVC。
115
+ 后者实际上是向名字空间请求 6Gi 容量,而该名字空间已经设置上限为 5Gi。
116
116
117
117
` ` ` yaml
118
118
apiVersion : v1
0 commit comments