Skip to content

Commit 91028aa

Browse files
committed
[zh-cn]sync priority-class-v1
Signed-off-by: xin.li <[email protected]>
1 parent de1fc72 commit 91028aa

1 file changed

Lines changed: 30 additions & 72 deletions

File tree

content/zh-cn/docs/reference/kubernetes-api/workload-resources/priority-class-v1.md

Lines changed: 30 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ api_metadata:
66
content_type: "api_reference"
77
description: "PriorityClass 定义了从优先级类名到优先级数值的映射。"
88
title: "PriorityClass"
9-
weight: 14
9+
weight: 15
1010
auto_generated: false
1111
---
1212
<!--
@@ -17,7 +17,7 @@ api_metadata:
1717
content_type: "api_reference"
1818
description: "PriorityClass defines mapping from a priority class name to the priority integer value."
1919
title: "PriorityClass"
20-
weight: 14
20+
weight: 15
2121
auto_generated: true
2222
-->
2323

@@ -49,15 +49,6 @@ PriorityClass 定义了从优先级类名到优先级数值的映射。
4949
标准对象的元数据。更多信息:
5050
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
5151

52-
<!--
53-
- **value** (int32), required
54-
55-
value represents the integer value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.
56-
-->
57-
- **value** (int32),必需
58-
59-
`value` 表示此优先级的整数值。这是 Pod 在其 Pod 规约中有此类名称时收到的实际优先级。
60-
6152
<!--
6253
- **description** (string)
6354
@@ -83,20 +74,21 @@ PriorityClass 定义了从优先级类名到优先级数值的映射。
8374
- **preemptionPolicy** (string)
8475
8576
preemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.
86-
87-
Possible enum values:
88-
- `"Never"` means that pod never preempts other pods with lower priority.
89-
- `"PreemptLowerPriority"` means that pod can preempt other pods with lower priority.
9077
-->
9178
- **preemptionPolicy** (string)
9279

9380
`preemptionPolicy` 是与抢占优先级较低的 Pod 相关的策略。
9481
可选值:Never、PreemptLowerPriority。
9582
如果未设置,则默认为 PreemptLowerPriority。
9683

97-
可能的枚举值:
98-
- `"Never"` 表示 Pod 永远不会抢占具有较低优先级的其他 Pod。
99-
- `"PreemptLowerPriority"` 表示 Pod 可以抢占具有较低优先级的其他 Pod。
84+
<!--
85+
- **value** (int32), required
86+
87+
value represents the integer value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.
88+
-->
89+
- **value** (int32),必需
90+
91+
`value` 表示此优先级的整数值。这是 Pod 在其 Pod 规约中有此类名称时收到的实际优先级。
10092

10193
<!--
10294
## PriorityClassList {#PriorityClassList}
@@ -178,10 +170,6 @@ GET /apis/scheduling.k8s.io/v1/priorityclasses/{name}
178170

179171
<!--
180172
#### Response
181-
182-
200 (<a href="{{< ref "../workload-resources/priority-class-v1#PriorityClass" >}}">PriorityClass</a>): OK
183-
184-
401: Unauthorized
185173
-->
186174
#### 响应
187175

@@ -196,8 +184,6 @@ GET /apis/scheduling.k8s.io/v1/priorityclasses/{name}
196184

197185
<!--
198186
#### HTTP Request
199-
200-
GET /apis/scheduling.k8s.io/v1/priorityclasses
201187
-->
202188
#### HTTP 请求
203189

@@ -289,6 +275,15 @@ GET /apis/scheduling.k8s.io/v1/priorityclasses
289275

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

278+
<!--
279+
- **shardSelector** (*in query*): string
280+
281+
<a href="{{< ref "../common-parameters/common-parameters#shardSelector" >}}">shardSelector</a>
282+
-->
283+
- **shardSelector** (**查询参数**): string
284+
285+
<a href="{{< ref "../common-parameters/common-parameters#shardSelector" >}}">shardSelector</a>
286+
292287
<!--
293288
- **timeoutSeconds** (*in query*): integer
294289
@@ -309,10 +304,6 @@ GET /apis/scheduling.k8s.io/v1/priorityclasses
309304

310305
<!--
311306
#### Response
312-
313-
200 (<a href="{{< ref "../workload-resources/priority-class-v1#PriorityClassList" >}}">PriorityClassList</a>): OK
314-
315-
401: Unauthorized
316307
-->
317308
#### 响应
318309

@@ -327,8 +318,6 @@ GET /apis/scheduling.k8s.io/v1/priorityclasses
327318

328319
<!--
329320
#### HTTP Request
330-
331-
POST /apis/scheduling.k8s.io/v1/priorityclasses
332321
-->
333322
#### HTTP 请求
334323

@@ -382,14 +371,6 @@ POST /apis/scheduling.k8s.io/v1/priorityclasses
382371

383372
<!--
384373
#### Response
385-
386-
200 (<a href="{{< ref "../workload-resources/priority-class-v1#PriorityClass" >}}">PriorityClass</a>): OK
387-
388-
201 (<a href="{{< ref "../workload-resources/priority-class-v1#PriorityClass" >}}">PriorityClass</a>): Created
389-
390-
202 (<a href="{{< ref "../workload-resources/priority-class-v1#PriorityClass" >}}">PriorityClass</a>): Accepted
391-
392-
401: Unauthorized
393374
-->
394375
#### 响应
395376

@@ -408,8 +389,6 @@ POST /apis/scheduling.k8s.io/v1/priorityclasses
408389

409390
<!--
410391
#### HTTP Request
411-
412-
PUT /apis/scheduling.k8s.io/v1/priorityclasses/{name}
413392
-->
414393
#### HTTP 请求
415394

@@ -470,15 +449,8 @@ PUT /apis/scheduling.k8s.io/v1/priorityclasses/{name}
470449

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

473-
474452
<!--
475453
#### Response
476-
477-
200 (<a href="{{< ref "../workload-resources/priority-class-v1#PriorityClass" >}}">PriorityClass</a>): OK
478-
479-
201 (<a href="{{< ref "../workload-resources/priority-class-v1#PriorityClass" >}}">PriorityClass</a>): Created
480-
481-
401: Unauthorized
482454
-->
483455
#### 响应
484456

@@ -488,16 +460,13 @@ PUT /apis/scheduling.k8s.io/v1/priorityclasses/{name}
488460

489461
401: Unauthorized
490462

491-
492463
<!--
493464
### `patch` partially update the specified PriorityClass
494465
-->
495466
### `patch` 部分更新特定的 PriorityClass
496467

497468
<!--
498469
#### HTTP Request
499-
500-
PATCH /apis/scheduling.k8s.io/v1/priorityclasses/{name}
501470
-->
502471
#### HTTP 请求
503472

@@ -569,12 +538,6 @@ PATCH /apis/scheduling.k8s.io/v1/priorityclasses/{name}
569538

570539
<!--
571540
#### Response
572-
573-
200 (<a href="{{< ref "../workload-resources/priority-class-v1#PriorityClass" >}}">PriorityClass</a>): OK
574-
575-
201 (<a href="{{< ref "../workload-resources/priority-class-v1#PriorityClass" >}}">PriorityClass</a>): Created
576-
577-
401: Unauthorized
578541
-->
579542
#### 响应
580543

@@ -591,15 +554,13 @@ PATCH /apis/scheduling.k8s.io/v1/priorityclasses/{name}
591554

592555
<!--
593556
#### HTTP Request
594-
595-
DELETE /apis/scheduling.k8s.io/v1/priorityclasses/{name}
596557
-->
597558
#### HTTP 请求
598559

599560
DELETE /apis/scheduling.k8s.io/v1/priorityclasses/{name}
600561

601-
<!-- ####
602-
Parameters
562+
<!--
563+
#### Parameters
603564
--->
604565
#### 参数
605566

@@ -664,12 +625,6 @@ Parameters
664625

665626
<!--
666627
#### Response
667-
668-
200 (<a href="{{< ref "../common-definitions/status#Status" >}}">Status</a>): OK
669-
670-
202 (<a href="{{< ref "../common-definitions/status#Status" >}}">Status</a>): Accepted
671-
672-
401: Unauthorized
673628
-->
674629
#### 响应
675630

@@ -686,8 +641,6 @@ Parameters
686641

687642
<!--
688643
#### HTTP Request
689-
690-
DELETE /apis/scheduling.k8s.io/v1/priorityclasses
691644
-->
692645
#### HTTP 请求
693646

@@ -808,6 +761,15 @@ DELETE /apis/scheduling.k8s.io/v1/priorityclasses
808761

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

764+
<!--
765+
- **shardSelector** (*in query*): string
766+
767+
<a href="{{< ref "../common-parameters/common-parameters#shardSelector" >}}">shardSelector</a>
768+
-->
769+
- **shardSelector** (**查询参数**): string
770+
771+
<a href="{{< ref "../common-parameters/common-parameters#shardSelector" >}}">shardSelector</a>
772+
811773
<!--
812774
- **timeoutSeconds** (*in query*): integer
813775
@@ -819,10 +781,6 @@ DELETE /apis/scheduling.k8s.io/v1/priorityclasses
819781

820782
<!--
821783
#### Response
822-
823-
200 (<a href="{{< ref "../common-definitions/status#Status" >}}">Status</a>): OK
824-
825-
401: Unauthorized
826784
-->
827785
#### 响应
828786

0 commit comments

Comments
 (0)