[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
|
- 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
|
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.
|
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/) 强制执行。
|
[RBAC](/zh-cn/docs/reference/access-authn-authz/rbac/) 强制执行。
|
||||||
|
@ -337,7 +339,7 @@ Secret 的数量进行配额限制。
|
||||||
Job 而导致集群拒绝服务。
|
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:
|
The following types are supported:
|
||||||
-->
|
-->
|
||||||
对有限的一组资源上实施一般性的对象数量配额也是可能的。
|
对有限的一组资源上实施一般性的对象数量配额也是可能的。
|
||||||
|
@ -542,7 +544,9 @@ works as follows:
|
||||||
- 集群中的 Pod 可取三个优先级类之一,即 "low"、"medium"、"high"。
|
- 集群中的 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 保存到文件 `quota.yml` 中。
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
@ -560,7 +564,7 @@ items:
|
||||||
pods: "10"
|
pods: "10"
|
||||||
scopeSelector:
|
scopeSelector:
|
||||||
matchExpressions:
|
matchExpressions:
|
||||||
- operator : In
|
- operator: In
|
||||||
scopeName: PriorityClass
|
scopeName: PriorityClass
|
||||||
values: ["high"]
|
values: ["high"]
|
||||||
- apiVersion: v1
|
- apiVersion: v1
|
||||||
|
@ -574,7 +578,7 @@ items:
|
||||||
pods: "10"
|
pods: "10"
|
||||||
scopeSelector:
|
scopeSelector:
|
||||||
matchExpressions:
|
matchExpressions:
|
||||||
- operator : In
|
- operator: In
|
||||||
scopeName: PriorityClass
|
scopeName: PriorityClass
|
||||||
values: ["medium"]
|
values: ["medium"]
|
||||||
- apiVersion: v1
|
- apiVersion: v1
|
||||||
|
@ -588,7 +592,7 @@ items:
|
||||||
pods: "10"
|
pods: "10"
|
||||||
scopeSelector:
|
scopeSelector:
|
||||||
matchExpressions:
|
matchExpressions:
|
||||||
- operator : In
|
- operator: In
|
||||||
scopeName: PriorityClass
|
scopeName: PriorityClass
|
||||||
values: ["low"]
|
values: ["low"]
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue