Skip to content

Commit b1b7d5d

Browse files
committed
[zh-cn]sync resource-quota-v1
Signed-off-by: xin.li <[email protected]>
1 parent d08777d commit b1b7d5d

File tree

1 file changed

+68
-35
lines changed

1 file changed

+68
-35
lines changed

content/zh-cn/docs/reference/kubernetes-api/policy-resources/resource-quota-v1.md

Lines changed: 68 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ ResourceQuota 设置每个命名空间强制执行的聚合配额限制。
5353
Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
5454
-->
5555

56-
spec 定义所需的配额。
56+
`spec` 定义所需的配额。
5757
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
5858

5959
- **status** (<a href="{{< ref "../policy-resources/resource-quota-v1#ResourceQuotaStatus" >}}">ResourceQuotaStatus</a>)
@@ -62,7 +62,7 @@ ResourceQuota 设置每个命名空间强制执行的聚合配额限制。
6262
Status defines the actual enforced quota and its current usage. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
6363
-->
6464

65-
status 定义实际执行的配额及其当前使用情况。
65+
`status` 定义实际执行的配额及其当前使用情况。
6666
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
6767

6868
## ResourceQuotaSpec {#ResourceQuotaSpec}
@@ -77,7 +77,7 @@ ResourceQuotaSpec 定义为 Quota 强制执行所需的硬限制。
7777
hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
7878
-->
7979

80-
hard 是每种指定资源所需的硬性限制集合。
80+
`hard` 是每种指定资源所需的硬性限制集合。
8181
更多信息: https://kubernetes.io/docs/concepts/policy/resource-quotas/
8282

8383
- **scopeSelector** (ScopeSelector)
@@ -86,9 +86,9 @@ ResourceQuotaSpec 定义为 Quota 强制执行所需的硬限制。
8686
scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota but expressed using ScopeSelectorOperator in combination with possible values. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched.
8787
-->
8888

89-
scopeSelector 也是一组过滤器的集合,和 scopes 类似,
89+
`scopeSelector` 也是一组过滤器的集合,和 scopes 类似,
9090
必须匹配配额所跟踪的每个对象,但使用 ScopeSelectorOperator 结合可能的值来表示。
91-
对于要匹配的资源,必须同时匹配 scopes 和 scopeSelector(如果在 spec 中设置了的话)。
91+
对于要匹配的资源,必须同时匹配 scopes 和 `scopeSelector`(如果在 `spec` 中设置了的话)。
9292

9393
<a name="ScopeSelector"></a>
9494
<!--
@@ -121,16 +121,49 @@ ResourceQuotaSpec 定义为 Quota 强制执行所需的硬限制。
121121
Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist.
122122
-->
123123

124-
表示范围与一组值之间的关系。有效的运算符为 In、NotIn、Exists、DoesNotExist。
124+
表示范围与一组值之间的关系。有效的运算符为 `In``NotIn``Exists``DoesNotExist`
125+
126+
<!--
127+
Possible enum values:
128+
- `"DoesNotExist"`
129+
- `"Exists"`
130+
- `"In"`
131+
- `"NotIn"`
132+
-->
133+
134+
可能的枚举值:
135+
- `"DoesNotExist"`
136+
- `"Exists"`
137+
- `"In"`
138+
- `"NotIn"`
125139

126140
- **scopeSelector.matchExpressions.scopeName** (string),必需
127141

128142
<!--
129143
The name of the scope that the selector applies to.
144+
145+
Possible enum values:
146+
- `"BestEffort"` Match all pod objects that have best effort quality of service
147+
- `"CrossNamespacePodAffinity"` Match all pod objects that have cross-namespace pod (anti)affinity mentioned.
148+
- `"NotBestEffort"` Match all pod objects that do not have best effort quality of service
149+
- `"NotTerminating"` Match all pod objects where spec.activeDeadlineSeconds is nil
150+
- `"PriorityClass"` Match all pod objects that have priority class mentioned
151+
- `"Terminating"` Match all pod objects where spec.activeDeadlineSeconds >=0
152+
- `"VolumeAttributesClass"` Match all pvc objects that have volume attributes class mentioned.
130153
-->
131154

132155
选择器所适用的范围的名称。
133156

157+
可能的枚举值:
158+
159+
- `"BestEffort"` 匹配所有 BestEffort 服务质量的 Pod 对象
160+
- `"CrossNamespacePodAffinity"` 匹配所有提到跨命名空间 Pod(反)亲和性的 Pod 对象
161+
- `"NotBestEffort"` 匹配所有非 BestEffort 服务质量的 Pod 对象
162+
- `"NotTerminating"` 匹配所有 `spec.activeDeadlineSeconds` 为 nil 的 Pod 对象
163+
- `"PriorityClass"` 匹配所有指定了优先级类的 Pod 对象
164+
- `"Terminating"` 匹配所有 `spec.activeDeadlineSeconds >=0` 的 Pod 对象
165+
- `"VolumeAttributesClass"` 匹配所有指定了卷属性类的 PVC 对象
166+
134167
- **scopeSelector.matchExpressions.values** ([]string)
135168

136169
<!--
@@ -141,8 +174,8 @@ ResourceQuotaSpec 定义为 Quota 强制执行所需的硬限制。
141174
**原子:将在合并期间被替换**
142175

143176
字符串值数组。
144-
如果操作符是 In 或 NotInvalues 数组必须是非空的。
145-
如果操作符是 Exists 或 DoesNotExistvalues 数组必须为空。
177+
如果操作符是 `In``NotIn``values` 数组必须是非空的。
178+
如果操作符是 `Exists``DoesNotExist``values` 数组必须为空。
146179
该数组将在策略性合并补丁操作期间被替换。
147180

148181
- **scopes** ([]string)
@@ -173,7 +206,7 @@ ResourceQuotaStatus 定义硬性限制和观测到的用量。
173206
Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
174207
-->
175208

176-
hard 是每种指定资源所强制实施的硬性限制集合。
209+
`hard` 是每种指定资源所强制实施的硬性限制集合。
177210
更多信息: https://kubernetes.io/docs/concepts/policy/resource-quotas/
178211

179212
- **used** (map[string]<a href="{{< ref "../common-definitions/quantity#Quantity" >}}">Quantity</a>)
@@ -182,7 +215,7 @@ ResourceQuotaStatus 定义硬性限制和观测到的用量。
182215
Used is the current observed total usage of the resource in the namespace.
183216
-->
184217

185-
used 是当前命名空间中所观察到的资源总用量。
218+
`used` 是当前命名空间中所观察到的资源总用量。
186219

187220
## ResourceQuotaList {#ResourceQuotaList}
188221

@@ -212,8 +245,8 @@ ResourceQuotaList 是 ResourceQuota 列表。
212245
Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
213246
-->
214247

215-
items 是 ResourceQuota 对象的列表。
216-
更多信息: https://kubernetes.io/docs/concepts/policy/resource-quotas/
248+
`items` 是 ResourceQuota 对象的列表。更多信息:
249+
https://kubernetes.io/docs/concepts/policy/resource-quotas/
217250

218251
<!--
219252
## Operations {#Operations}
@@ -387,51 +420,51 @@ GET /api/v1/namespaces/{namespace}/resourcequotas
387420
-->
388421
#### 参数
389422

390-
- **namespace** **路径参数**): string, 必需
423+
- **namespace****路径参数**): string, 必需
391424

392425
<a href="{{< ref "../common-parameters/common-parameters#namespace" >}}">namespace</a>
393426

394-
- **allowWatchBookmarks** **查询参数**): boolean
427+
- **allowWatchBookmarks****查询参数**): boolean
395428

396429
<a href="{{< ref "../common-parameters/common-parameters#allowWatchBookmarks" >}}">allowWatchBookmarks</a>
397430

398-
- **continue** **查询参数**): string
431+
- **continue****查询参数**): string
399432

400433
<a href="{{< ref "../common-parameters/common-parameters#continue" >}}">continue</a>
401434

402-
- **fieldSelector** **查询参数**): string
435+
- **fieldSelector****查询参数**): string
403436

404437
<a href="{{< ref "../common-parameters/common-parameters#fieldSelector" >}}">fieldSelector</a>
405438

406-
- **labelSelector** **查询参数**): string
439+
- **labelSelector****查询参数**): string
407440

408441
<a href="{{< ref "../common-parameters/common-parameters#labelSelector" >}}">labelSelector</a>
409442

410-
- **limit** **查询参数**): integer
443+
- **limit****查询参数**): integer
411444

412445
<a href="{{< ref "../common-parameters/common-parameters#limit" >}}">limit</a>
413446

414-
- **pretty** **查询参数**): string
447+
- **pretty****查询参数**): string
415448

416449
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
417450

418-
- **resourceVersion** **查询参数**): string
451+
- **resourceVersion****查询参数**): string
419452

420453
<a href="{{< ref "../common-parameters/common-parameters#resourceVersion" >}}">resourceVersion</a>
421454

422-
- **resourceVersionMatch** **查询参数**): string
455+
- **resourceVersionMatch****查询参数**): string
423456

424457
<a href="{{< ref "../common-parameters/common-parameters#resourceVersionMatch" >}}">resourceVersionMatch</a>
425458

426-
- **sendInitialEvents** (**查询参数**): boolean
459+
- **sendInitialEvents****查询参数**: boolean
427460

428461
<a href="{{< ref "../common-parameters/common-parameters#sendInitialEvents" >}}">sendInitialEvents</a>
429462

430-
- **timeoutSeconds** **查询参数**): integer
463+
- **timeoutSeconds****查询参数**): integer
431464

432465
<a href="{{< ref "../common-parameters/common-parameters#timeoutSeconds" >}}">timeoutSeconds</a>
433466

434-
- **watch** **查询参数**): boolean
467+
- **watch****查询参数**): boolean
435468

436469
<a href="{{< ref "../common-parameters/common-parameters#watch" >}}">watch</a>
437470

@@ -505,47 +538,47 @@ GET /api/v1/resourcequotas
505538
-->
506539
#### 参数
507540

508-
- **allowWatchBookmarks** **查询参数**): boolean
541+
- **allowWatchBookmarks****查询参数**): boolean
509542

510543
<a href="{{< ref "../common-parameters/common-parameters#allowWatchBookmarks" >}}">allowWatchBookmarks</a>
511544

512-
- **continue** **查询参数**): string
545+
- **continue****查询参数**): string
513546

514547
<a href="{{< ref "../common-parameters/common-parameters#continue" >}}">continue</a>
515548

516-
- **fieldSelector** **查询参数**): string
549+
- **fieldSelector****查询参数**): string
517550

518551
<a href="{{< ref "../common-parameters/common-parameters#fieldSelector" >}}">fieldSelector</a>
519552

520-
- **labelSelector** **查询参数**): string
553+
- **labelSelector****查询参数**): string
521554

522555
<a href="{{< ref "../common-parameters/common-parameters#labelSelector" >}}">labelSelector</a>
523556

524-
- **limit** **查询参数**): integer
557+
- **limit****查询参数**): integer
525558

526559
<a href="{{< ref "../common-parameters/common-parameters#limit" >}}">limit</a>
527560

528-
- **pretty** **查询参数**): string
561+
- **pretty****查询参数**): string
529562

530563
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
531564

532-
- **resourceVersion** **查询参数**): string
565+
- **resourceVersion****查询参数**): string
533566

534567
<a href="{{< ref "../common-parameters/common-parameters#resourceVersion" >}}">resourceVersion</a>
535568

536-
- **resourceVersionMatch** **查询参数**): string
569+
- **resourceVersionMatch****查询参数**): string
537570

538571
<a href="{{< ref "../common-parameters/common-parameters#resourceVersionMatch" >}}">resourceVersionMatch</a>
539572

540-
- **sendInitialEvents** (**查询参数**): boolean
573+
- **sendInitialEvents****查询参数**: boolean
541574

542575
<a href="{{< ref "../common-parameters/common-parameters#sendInitialEvents" >}}">sendInitialEvents</a>
543576

544-
- **timeoutSeconds** **查询参数**): integer
577+
- **timeoutSeconds****查询参数**): integer
545578

546579
<a href="{{< ref "../common-parameters/common-parameters#timeoutSeconds" >}}">timeoutSeconds</a>
547580

548-
- **watch** **查询参数**): boolean
581+
- **watch****查询参数**): boolean
549582

550583
<a href="{{< ref "../common-parameters/common-parameters#watch" >}}">watch</a>
551584

0 commit comments

Comments
 (0)