Skip to content

Commit a9e769c

Browse files
authored
Merge pull request #43254 from 0xff-dev/main
[zh] sync policy/resource-quotas.md
2 parents c8bd416 + c4e29a4 commit a9e769c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

content/zh-cn/docs/concepts/policy/resource-quotas.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ for that Pod.
8080
You can use a [LimitRange](/docs/concepts/policy/limit-range/) to automatically set
8181
a default request for these resources.
8282
-->
83-
- 对于 `cpu``memory` 资源:ResourceQuota 强制该命名空间中的每个(新)Pod 为该资源设置限制。
83+
- 对于 `cpu``memory` 资源:ResourceQuota 强制该命名空间中的**每个**(新)Pod 为该资源设置限制。
8484
如果你在命名空间中为 `cpu``memory` 实施资源配额,
8585
你或其他客户端**必须**为你提交的每个新 Pod 指定该资源的 `requests``limits`
8686
否则,控制平面可能会拒绝接纳该 Pod。
@@ -1045,7 +1045,7 @@ Then, create a resource quota object in the `kube-system` namespace:
10451045
-->
10461046
现在在 `kube-system` 名字空间中创建一个资源配额对象:
10471047

1048-
{{< codenew file="policy/priority-class-resourcequota.yaml" >}}
1048+
{{% code_sample file="policy/priority-class-resourcequota.yaml" %}}
10491049

10501050
```shell
10511051
kubectl apply -f https://k8s.io/examples/policy/priority-class-resourcequota.yaml -n kube-system
@@ -1089,4 +1089,3 @@ and it is to be created in a namespace other than `kube-system`.
10891089
- 参阅[如何使用资源配额的详细示例](/zh-cn/docs/tasks/administer-cluster/quota-api-object/)
10901090
- 参阅[优先级类配额支持的设计文档](https://git.k8s.io/design-proposals-archive/scheduling/pod-priority-resourcequota.md)了解更多信息。
10911091
- 参阅 [LimitedResources](https://github.com/kubernetes/kubernetes/pull/36765)
1092-

0 commit comments

Comments
 (0)