[zh] Resync page resource-quota
This commit is contained in:
parent
c475d558e0
commit
baf26100bf
|
@ -50,7 +50,9 @@ Resource quotas work like this:
|
|||
- If quota is enabled in a namespace for compute resources like `cpu` and `memory`, users must specify
|
||||
requests or limits for those values; otherwise, the quota system may reject pod creation. Hint: Use
|
||||
the `LimitRanger` admission controller to force defaults for pods that make no compute resource requirements.
|
||||
See the [walkthrough](/docs/tasks/administer-cluster/quota-memory-cpu-namespace/) for an example of how to avoid this problem.
|
||||
|
||||
See the [walkthrough](/docs/tasks/administer-cluster/manage-resources/quota-memory-cpu-namespace/)
|
||||
for an example of how to avoid this problem.
|
||||
-->
|
||||
- 不同的团队可以在不同的命名空间下工作。这可以通过
|
||||
[RBAC](/zh-cn/docs/reference/access-authn-authz/rbac/) 强制执行。
|
||||
|
@ -337,7 +339,7 @@ Secret 的数量进行配额限制。
|
|||
Job 而导致集群拒绝服务。
|
||||
|
||||
<!--
|
||||
It is possible to do generic object count quota on a limited set of resources.
|
||||
It is also possible to do generic object count quota on a limited set of resources.
|
||||
The following types are supported:
|
||||
-->
|
||||
对有限的一组资源上实施一般性的对象数量配额也是可能的。
|
||||
|
@ -542,7 +544,9 @@ works as follows:
|
|||
- 集群中的 Pod 可取三个优先级类之一,即 "low"、"medium"、"high"。
|
||||
- 为每个优先级创建一个配额对象。
|
||||
|
||||
<!-- Save the following YAML to a file `quota.yml`. -->
|
||||
<!--
|
||||
Save the following YAML to a file `quota.yml`.
|
||||
-->
|
||||
将以下 YAML 保存到文件 `quota.yml` 中。
|
||||
|
||||
```yaml
|
||||
|
@ -560,7 +564,7 @@ items:
|
|||
pods: "10"
|
||||
scopeSelector:
|
||||
matchExpressions:
|
||||
- operator : In
|
||||
- operator: In
|
||||
scopeName: PriorityClass
|
||||
values: ["high"]
|
||||
- apiVersion: v1
|
||||
|
@ -574,7 +578,7 @@ items:
|
|||
pods: "10"
|
||||
scopeSelector:
|
||||
matchExpressions:
|
||||
- operator : In
|
||||
- operator: In
|
||||
scopeName: PriorityClass
|
||||
values: ["medium"]
|
||||
- apiVersion: v1
|
||||
|
@ -588,7 +592,7 @@ items:
|
|||
pods: "10"
|
||||
scopeSelector:
|
||||
matchExpressions:
|
||||
- operator : In
|
||||
- operator: In
|
||||
scopeName: PriorityClass
|
||||
values: ["low"]
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue