[zh]translate kubernetes-api/workload-resources/priority-class-v1.md into chinese
This commit is contained in:
@@ -0,0 +1,811 @@
|
||||
---
|
||||
api_metadata:
|
||||
apiVersion: "scheduling.k8s.io/v1"
|
||||
import: "k8s.io/api/scheduling/v1"
|
||||
kind: "PriorityClass"
|
||||
content_type: "api_reference"
|
||||
description: "PriorityClass 定义了从优先级类名到优先级数值的映射。"
|
||||
title: "PriorityClass"
|
||||
weight: 14
|
||||
auto_generated: false
|
||||
---
|
||||
|
||||
<!--
|
||||
api_metadata:
|
||||
apiVersion: "scheduling.k8s.io/v1"
|
||||
import: "k8s.io/api/scheduling/v1"
|
||||
kind: "PriorityClass"
|
||||
content_type: "api_reference"
|
||||
description: "PriorityClass defines mapping from a priority class name to the priority integer value."
|
||||
title: "PriorityClass"
|
||||
weight: 14
|
||||
auto_generated: true
|
||||
-->
|
||||
|
||||
|
||||
`apiVersion: scheduling.k8s.io/v1`
|
||||
|
||||
`import "k8s.io/api/scheduling/v1"`
|
||||
|
||||
<!--
|
||||
## PriorityClass {#PriorityClass}
|
||||
-->
|
||||
## PriorityClass {#PriorityClass}
|
||||
|
||||
<!--
|
||||
PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.
|
||||
|
||||
<hr>
|
||||
-->
|
||||
PriorityClass 定义了从优先级类名到优先级数值的映射。
|
||||
该值可以是任何有效的整数。
|
||||
|
||||
<hr>
|
||||
|
||||
<!--
|
||||
- **apiVersion**: scheduling.k8s.io/v1
|
||||
-->
|
||||
- **apiVersion**: scheduling.k8s.io/v1
|
||||
|
||||
<!--
|
||||
- **kind**: PriorityClass
|
||||
-->
|
||||
- **kind**: PriorityClass
|
||||
|
||||
<!--
|
||||
- **metadata** (<a href="{{< ref "../common-definitions/object-meta#ObjectMeta" >}}">ObjectMeta</a>)
|
||||
|
||||
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
-->
|
||||
- **metadata** (<a href="{{< ref "../common-definitions/object-meta#ObjectMeta" >}}">ObjectMeta</a>)
|
||||
|
||||
标准对象的元数据。
|
||||
更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
|
||||
<!--
|
||||
- **value** (int32), required
|
||||
|
||||
The 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.
|
||||
-->
|
||||
- **value** (int32),必需
|
||||
|
||||
此优先级的值。这是 Pod 在其 Pod 规约中有此类名称时收到的实际优先级。
|
||||
|
||||
<!--
|
||||
- **description** (string)
|
||||
|
||||
description is an arbitrary string that usually provides guidelines on when this priority class should be used.
|
||||
-->
|
||||
- **description** (string)
|
||||
|
||||
description 是一个任意字符串,通常提供有关何时应使用此优先级的指南。
|
||||
|
||||
<!--
|
||||
- **globalDefault** (boolean)
|
||||
|
||||
globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority.
|
||||
-->
|
||||
- **globalDefault** (boolean)
|
||||
|
||||
globalDefault 指定是否应将此 PriorityClass 视为没有任何优先级类的 pod 的默认优先级。
|
||||
只有一个 PriorityClass 可以标记为 `globalDefault`。
|
||||
但是,如果存在多个 PriorityClasses 且其 `globalDefault` 字段设置为 true,
|
||||
则将使用此类全局默认 PriorityClasses 的最小值作为默认优先级。
|
||||
|
||||
<!--
|
||||
- **preemptionPolicy** (string)
|
||||
|
||||
PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.
|
||||
-->
|
||||
- **preemptionPolicy** (string)
|
||||
|
||||
PreemptionPolicy 是抢占优先级较低的 Pod 的策略。
|
||||
可选值:Never、PreemptLowerPriority。
|
||||
如果未设置,则默认为 PreemptLowerPriority。
|
||||
|
||||
<!--
|
||||
## PriorityClassList {#PriorityClassList}
|
||||
|
||||
PriorityClassList is a collection of priority classes.
|
||||
|
||||
<hr>
|
||||
-->
|
||||
## PriorityClassList {#PriorityClassList}
|
||||
|
||||
PriorityClassList 是优先级类的集合。
|
||||
|
||||
<hr>
|
||||
|
||||
<!--
|
||||
- **apiVersion**: scheduling.k8s.io/v1
|
||||
-->
|
||||
- **apiVersion**: scheduling.k8s.io/v1
|
||||
|
||||
<!--
|
||||
- **kind**: PriorityClassList
|
||||
-->
|
||||
- **kind**: PriorityClassList
|
||||
|
||||
<!--
|
||||
- **metadata** (<a href="{{< ref "../common-definitions/list-meta#ListMeta" >}}">ListMeta</a>)
|
||||
|
||||
Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
-->
|
||||
- **metadata** (<a href="{{< ref "../common-definitions/list-meta#ListMeta" >}}">ListMeta</a>)
|
||||
|
||||
标准列表元数据。更多信息:https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
||||
|
||||
<!--
|
||||
- **items** ([]<a href="{{< ref "../workload-resources/priority-class-v1#PriorityClass" >}}">PriorityClass</a>), required
|
||||
|
||||
items is the list of PriorityClasses
|
||||
-->
|
||||
- **items** ([]<a href="{{< ref "../workload-resources/priority-class-v1#PriorityClass" >}}">PriorityClass</a>),必需
|
||||
|
||||
items 是 PriorityClasses 的列表
|
||||
|
||||
<!--
|
||||
## Operations {#Operations}
|
||||
|
||||
<hr>
|
||||
-->
|
||||
## 操作 {#Operations}
|
||||
|
||||
<hr>
|
||||
|
||||
<!--
|
||||
### `get` read the specified PriorityClass
|
||||
-->
|
||||
### `get` 读取特定的 PriorityClass
|
||||
|
||||
<!--
|
||||
#### HTTP Request
|
||||
|
||||
GET /apis/scheduling.k8s.io/v1/priorityclasses/{name}
|
||||
-->
|
||||
#### HTTP 请求
|
||||
|
||||
GET /apis/scheduling.k8s.io/v1/priorityclasses/{name}
|
||||
|
||||
<!--
|
||||
#### Parameters
|
||||
-->
|
||||
#### 参数
|
||||
|
||||
<!--
|
||||
- **name** (*in path*): string, required
|
||||
|
||||
name of the PriorityClass
|
||||
-->
|
||||
- **name** (*路径参数*): string,必需
|
||||
|
||||
PriorityClass 名称
|
||||
|
||||
<!--
|
||||
- **pretty** (*in query*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
|
||||
-->
|
||||
- **pretty** (*查询参数*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
|
||||
|
||||
<!--
|
||||
#### Response
|
||||
|
||||
200 (<a href="{{< ref "../workload-resources/priority-class-v1#PriorityClass" >}}">PriorityClass</a>): OK
|
||||
|
||||
401: Unauthorized
|
||||
-->
|
||||
#### 响应
|
||||
|
||||
200 (<a href="{{< ref "../workload-resources/priority-class-v1#PriorityClass" >}}">PriorityClass</a>): OK
|
||||
|
||||
401: Unauthorized
|
||||
|
||||
<!--
|
||||
### `list` list or watch objects of kind PriorityClass
|
||||
-->
|
||||
### `list` 列出或观察 PriorityClass类的对象
|
||||
|
||||
<!--
|
||||
#### HTTP Request
|
||||
|
||||
GET /apis/scheduling.k8s.io/v1/priorityclasses
|
||||
-->
|
||||
#### HTTP 请求
|
||||
|
||||
GET /apis/scheduling.k8s.io/v1/priorityclasses
|
||||
|
||||
<!--
|
||||
#### Parameters
|
||||
-->
|
||||
#### 参数
|
||||
|
||||
<!--
|
||||
- **allowWatchBookmarks** (*in query*): boolean
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#allowWatchBookmarks" >}}">allowWatchBookmarks</a>
|
||||
-->
|
||||
- **allowWatchBookmarks** (*查询参数*): boolean
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#allowWatchBookmarks" >}}">allowWatchBookmarks</a>
|
||||
|
||||
<!--
|
||||
- **continue** (*in query*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#continue" >}}">continue</a>
|
||||
-->
|
||||
- **continue** (*查询参数*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#continue" >}}">continue</a>
|
||||
|
||||
<!--
|
||||
- **fieldSelector** (*in query*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#fieldSelector" >}}">fieldSelector</a>
|
||||
-->
|
||||
- **fieldSelector** (*查询参数*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#fieldSelector" >}}">fieldSelector</a>
|
||||
|
||||
<!--
|
||||
- **labelSelector** (*in query*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#labelSelector" >}}">labelSelector</a>
|
||||
-->
|
||||
- **labelSelector** (*查询参数*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#labelSelector" >}}">labelSelector</a>
|
||||
|
||||
<!--
|
||||
- **limit** (*in query*): integer
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#limit" >}}">limit</a>
|
||||
-->
|
||||
- **limit** (*查询参数*): integer
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#limit" >}}">limit</a>
|
||||
|
||||
<!--
|
||||
- **pretty** (*in query*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
|
||||
-->
|
||||
- **pretty** (*查询参数*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
|
||||
|
||||
<!--
|
||||
- **resourceVersion** (*in query*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#resourceVersion" >}}">resourceVersion</a>
|
||||
-->
|
||||
- **resourceVersion** (*查询参数*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#resourceVersion" >}}">resourceVersion</a>
|
||||
|
||||
<!--
|
||||
- **resourceVersionMatch** (*in query*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#resourceVersionMatch" >}}">resourceVersionMatch</a>
|
||||
-->
|
||||
- **resourceVersionMatch** (*查询参数*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#resourceVersionMatch" >}}">resourceVersionMatch</a>
|
||||
|
||||
<!--
|
||||
- **timeoutSeconds** (*in query*): integer
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#timeoutSeconds" >}}">timeoutSeconds</a>
|
||||
-->
|
||||
- **timeoutSeconds** (*查询参数*): integer
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#timeoutSeconds" >}}">timeoutSeconds</a>
|
||||
|
||||
<!--
|
||||
- **watch** (*in query*): boolean
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#watch" >}}">watch</a>
|
||||
-->
|
||||
- **watch** (*查询参数*): boolean
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#watch" >}}">watch</a>
|
||||
|
||||
<!--
|
||||
#### Response
|
||||
|
||||
200 (<a href="{{< ref "../workload-resources/priority-class-v1#PriorityClassList" >}}">PriorityClassList</a>): OK
|
||||
|
||||
401: Unauthorized
|
||||
-->
|
||||
#### 响应
|
||||
|
||||
200 (<a href="{{< ref "../workload-resources/priority-class-v1#PriorityClassList" >}}">PriorityClassList</a>): OK
|
||||
|
||||
401: Unauthorized
|
||||
|
||||
<!--
|
||||
### `create` create a PriorityClass
|
||||
-->
|
||||
### `create` 创建一个 PriorityClass
|
||||
|
||||
<!--
|
||||
#### HTTP Request
|
||||
|
||||
POST /apis/scheduling.k8s.io/v1/priorityclasses
|
||||
-->
|
||||
#### HTTP 请求
|
||||
|
||||
POST /apis/scheduling.k8s.io/v1/priorityclasses
|
||||
|
||||
<!--
|
||||
#### Parameters
|
||||
-->
|
||||
#### 参数
|
||||
|
||||
<!--
|
||||
- **body**: <a href="{{< ref "../workload-resources/priority-class-v1#PriorityClass" >}}">PriorityClass</a>, required
|
||||
-->
|
||||
- **body**: <a href="{{< ref "../workload-resources/priority-class-v1#PriorityClass" >}}">PriorityClass</a>,必需
|
||||
|
||||
<!--
|
||||
- **dryRun** (*in query*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a>
|
||||
-->
|
||||
- **dryRun** (*查询参数*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a>
|
||||
|
||||
<!--
|
||||
- **fieldManager** (*in query*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#fieldManager" >}}">fieldManager</a>
|
||||
-->
|
||||
- **fieldManager** (*查询参数*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#fieldManager" >}}">fieldManager</a>
|
||||
|
||||
<!--
|
||||
- **fieldValidation** (*in query*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#fieldValidation" >}}">fieldValidation</a>
|
||||
-->
|
||||
- **fieldValidation** (*查询参数*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#fieldValidation" >}}">fieldValidation</a>
|
||||
|
||||
<!--
|
||||
- **pretty** (*in query*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
|
||||
-->
|
||||
- **pretty** (*查询参数*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
|
||||
|
||||
<!--
|
||||
#### Response
|
||||
|
||||
200 (<a href="{{< ref "../workload-resources/priority-class-v1#PriorityClass" >}}">PriorityClass</a>): OK
|
||||
|
||||
201 (<a href="{{< ref "../workload-resources/priority-class-v1#PriorityClass" >}}">PriorityClass</a>): Created
|
||||
|
||||
202 (<a href="{{< ref "../workload-resources/priority-class-v1#PriorityClass" >}}">PriorityClass</a>): Accepted
|
||||
|
||||
401: Unauthorized
|
||||
-->
|
||||
#### 响应
|
||||
|
||||
200 (<a href="{{< ref "../workload-resources/priority-class-v1#PriorityClass" >}}">PriorityClass</a>): OK
|
||||
|
||||
201 (<a href="{{< ref "../workload-resources/priority-class-v1#PriorityClass" >}}">PriorityClass</a>): Created
|
||||
|
||||
202 (<a href="{{< ref "../workload-resources/priority-class-v1#PriorityClass" >}}">PriorityClass</a>): Accepted
|
||||
|
||||
401: Unauthorized
|
||||
|
||||
<!--
|
||||
### `update` replace the specified PriorityClass
|
||||
-->
|
||||
### `update` 替换指定的 PriorityClass
|
||||
|
||||
<!--
|
||||
#### HTTP Request
|
||||
|
||||
PUT /apis/scheduling.k8s.io/v1/priorityclasses/{name}
|
||||
-->
|
||||
#### HTTP 请求
|
||||
|
||||
PUT /apis/scheduling.k8s.io/v1/priorityclasses/{name}
|
||||
|
||||
<!--
|
||||
#### Parameters
|
||||
-->
|
||||
#### 参数
|
||||
|
||||
<!--
|
||||
- **name** (*in path*): string, required
|
||||
|
||||
name of the PriorityClass
|
||||
-->
|
||||
- **name** (*路径参数*): string,必需
|
||||
|
||||
PriorityClass 名称
|
||||
|
||||
<!--
|
||||
- **body**: <a href="{{< ref "../workload-resources/priority-class-v1#PriorityClass" >}}">PriorityClass</a>, required
|
||||
-->
|
||||
- **body**: <a href="{{< ref "../workload-resources/priority-class-v1#PriorityClass" >}}">PriorityClass</a>,必需
|
||||
|
||||
<!--
|
||||
- **dryRun** (*in query*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a>
|
||||
-->
|
||||
- **dryRun** (*查询参数*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a>
|
||||
|
||||
<!--
|
||||
- **fieldManager** (*in query*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#fieldManager" >}}">fieldManager</a>
|
||||
-->
|
||||
- **fieldManager** (*查询参数*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#fieldManager" >}}">fieldManager</a>
|
||||
|
||||
<!--
|
||||
- **fieldValidation** (*in query*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#fieldValidation" >}}">fieldValidation</a>
|
||||
-->
|
||||
- **fieldValidation** (*查询参数*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#fieldValidation" >}}">fieldValidation</a>
|
||||
|
||||
<!--
|
||||
- **pretty** (*in query*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
|
||||
-->
|
||||
- **pretty** (*查询参数*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
|
||||
|
||||
|
||||
<!--
|
||||
#### Response
|
||||
|
||||
200 (<a href="{{< ref "../workload-resources/priority-class-v1#PriorityClass" >}}">PriorityClass</a>): OK
|
||||
|
||||
201 (<a href="{{< ref "../workload-resources/priority-class-v1#PriorityClass" >}}">PriorityClass</a>): Created
|
||||
|
||||
401: Unauthorized
|
||||
-->
|
||||
#### 响应
|
||||
|
||||
200 (<a href="{{< ref "../workload-resources/priority-class-v1#PriorityClass" >}}">PriorityClass</a>): OK
|
||||
|
||||
201 (<a href="{{< ref "../workload-resources/priority-class-v1#PriorityClass" >}}">PriorityClass</a>): Created
|
||||
|
||||
401: Unauthorized
|
||||
|
||||
|
||||
<!--
|
||||
### `patch` partially update the specified PriorityClass
|
||||
-->
|
||||
### `patch` 部分更新特定的 PriorityClass
|
||||
|
||||
<!--
|
||||
#### HTTP Request
|
||||
|
||||
PATCH /apis/scheduling.k8s.io/v1/priorityclasses/{name}
|
||||
-->
|
||||
#### HTTP 请求
|
||||
|
||||
PATCH /apis/scheduling.k8s.io/v1/priorityclasses/{name}
|
||||
|
||||
<!--
|
||||
#### Parameters
|
||||
-->
|
||||
#### 参数
|
||||
|
||||
<!--
|
||||
- **name** (*in path*): string, required
|
||||
|
||||
name of the PriorityClass
|
||||
-->
|
||||
- **name** (*路径参数*): string,必须
|
||||
|
||||
PriorityClass 名称
|
||||
|
||||
<!--
|
||||
- **body**: <a href="{{< ref "../common-definitions/patch#Patch" >}}">Patch</a>, required
|
||||
-->
|
||||
- **body**: <a href="{{< ref "../common-definitions/patch#Patch" >}}">Patch</a>,必需
|
||||
|
||||
<!--
|
||||
- **dryRun** (*in query*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a>
|
||||
-->
|
||||
- **dryRun** (*查询参数*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a>
|
||||
|
||||
<!--
|
||||
- **fieldManager** (*in query*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#fieldManager" >}}">fieldManager</a>
|
||||
-->
|
||||
- **fieldManager** (*查询参数*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#fieldManager" >}}">fieldManager</a>
|
||||
|
||||
<!--
|
||||
- **fieldValidation** (*in query*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#fieldValidation" >}}">fieldValidation</a>
|
||||
-->
|
||||
- **fieldValidation** (*查询参数*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#fieldValidation" >}}">fieldValidation</a>
|
||||
|
||||
<!--
|
||||
- **force** (*in query*): boolean
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#force" >}}">force</a>
|
||||
-->
|
||||
- **force** (*查询参数*): boolean
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#force" >}}">force</a>
|
||||
|
||||
<!--
|
||||
- **pretty** (*in query*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
|
||||
-->
|
||||
- **pretty** (*查询参数*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
|
||||
|
||||
<!--
|
||||
#### Response
|
||||
|
||||
200 (<a href="{{< ref "../workload-resources/priority-class-v1#PriorityClass" >}}">PriorityClass</a>): OK
|
||||
|
||||
201 (<a href="{{< ref "../workload-resources/priority-class-v1#PriorityClass" >}}">PriorityClass</a>): Created
|
||||
|
||||
401: Unauthorized
|
||||
-->
|
||||
#### 响应
|
||||
|
||||
200 (<a href="{{< ref "../workload-resources/priority-class-v1#PriorityClass" >}}">PriorityClass</a>): OK
|
||||
|
||||
201 (<a href="{{< ref "../workload-resources/priority-class-v1#PriorityClass" >}}">PriorityClass</a>): Created
|
||||
|
||||
401: Unauthorized
|
||||
|
||||
<!--
|
||||
### `delete` delete a PriorityClass
|
||||
-->
|
||||
### `delete` 删除一个 PriorityClass
|
||||
|
||||
<!--
|
||||
#### HTTP Request
|
||||
|
||||
DELETE /apis/scheduling.k8s.io/v1/priorityclasses/{name}
|
||||
-->
|
||||
#### HTTP 请求
|
||||
|
||||
DELETE /apis/scheduling.k8s.io/v1/priorityclasses/{name}
|
||||
|
||||
<!-- ####
|
||||
Parameters
|
||||
--->
|
||||
#### 参数
|
||||
|
||||
<!--
|
||||
- **name** (*in path*): string, required
|
||||
|
||||
name of the PriorityClass
|
||||
-->
|
||||
- **name** (*路径参数*): string,必需
|
||||
|
||||
PriorityClass 名称。
|
||||
|
||||
<!--
|
||||
- **body**: <a href="{{< ref "../common-definitions/delete-options#DeleteOptions" >}}">DeleteOptions</a>
|
||||
-->
|
||||
- **body**: <a href="{{< ref "../common-definitions/delete-options#DeleteOptions" >}}">DeleteOptions</a>
|
||||
|
||||
<!--
|
||||
- **dryRun** (*in query*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a>
|
||||
-->
|
||||
- **dryRun** (*查询参数*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a>
|
||||
|
||||
<!--
|
||||
- **gracePeriodSeconds** (*in query*): integer
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#gracePeriodSeconds" >}}">gracePeriodSeconds</a>
|
||||
-->
|
||||
- **gracePeriodSeconds** (*查询参数*): integer
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#gracePeriodSeconds" >}}">gracePeriodSeconds</a>
|
||||
|
||||
<!--
|
||||
- **pretty** (*in query*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
|
||||
-->
|
||||
- **pretty** (*查询参数*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
|
||||
|
||||
<!--
|
||||
- **propagationPolicy** (*in query*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#propagationPolicy" >}}">propagationPolicy</a>
|
||||
-->
|
||||
- **propagationPolicy** (*查询参数*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#propagationPolicy" >}}">propagationPolicy</a>
|
||||
|
||||
<!--
|
||||
#### Response
|
||||
|
||||
200 (<a href="{{< ref "../common-definitions/status#Status" >}}">Status</a>): OK
|
||||
|
||||
202 (<a href="{{< ref "../common-definitions/status#Status" >}}">Status</a>): Accepted
|
||||
|
||||
401: Unauthorized
|
||||
-->
|
||||
#### 响应
|
||||
|
||||
200 (<a href="{{< ref "../common-definitions/status#Status" >}}">Status</a>): OK
|
||||
|
||||
202 (<a href="{{< ref "../common-definitions/status#Status" >}}">Status</a>): Accepted
|
||||
|
||||
401: Unauthorized
|
||||
|
||||
<!--
|
||||
### `deletecollection` delete collection of PriorityClass
|
||||
-->
|
||||
### `deletecollection` 删除 PriorityClass 集合
|
||||
|
||||
<!--
|
||||
#### HTTP Request
|
||||
|
||||
DELETE /apis/scheduling.k8s.io/v1/priorityclasses
|
||||
-->
|
||||
#### HTTP 请求
|
||||
|
||||
DELETE /apis/scheduling.k8s.io/v1/priorityclasses
|
||||
|
||||
<!--
|
||||
#### Parameters
|
||||
-->
|
||||
#### 参数
|
||||
|
||||
<!-- - **body**: <a href="{{< ref "../common-definitions/delete-options#DeleteOptions" >}}">DeleteOptions</a> -->
|
||||
- **body**: <a href="{{< ref "../common-definitions/delete-options#DeleteOptions" >}}">DeleteOptions</a>
|
||||
|
||||
<!--
|
||||
- **continue** (*in query*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#continue" >}}">continue</a>
|
||||
-->
|
||||
- **continue** (*查询参数*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#continue" >}}">continue</a>
|
||||
|
||||
<!--
|
||||
- **dryRun** (*in query*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a>
|
||||
-->
|
||||
- **dryRun** (*查询参数*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#dryRun" >}}">dryRun</a>
|
||||
|
||||
<!--
|
||||
- **fieldSelector** (*in query*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#fieldSelector" >}}">fieldSelector</a>
|
||||
-->
|
||||
- **fieldSelector** (*查询参数*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#fieldSelector" >}}">fieldSelector</a>
|
||||
|
||||
<!--
|
||||
- **gracePeriodSeconds** (*in query*): integer
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#gracePeriodSeconds" >}}">gracePeriodSeconds</a>
|
||||
-->
|
||||
- **gracePeriodSeconds** (*查询参数*): integer
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#gracePeriodSeconds" >}}">gracePeriodSeconds</a>
|
||||
|
||||
<!--
|
||||
- **labelSelector** (*in query*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#labelSelector" >}}">labelSelector</a>
|
||||
-->
|
||||
- **labelSelector** (*查询参数*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#labelSelector" >}}">labelSelector</a>
|
||||
|
||||
<!--
|
||||
- **limit** (*in query*): integer
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#limit" >}}">limit</a>
|
||||
-->
|
||||
- **limit** (*查询参数*): integer
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#limit" >}}">limit</a>
|
||||
|
||||
<!--
|
||||
- **pretty** (*in query*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
|
||||
-->
|
||||
- **pretty** (*查询参数*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#pretty" >}}">pretty</a>
|
||||
|
||||
<!--
|
||||
- **propagationPolicy** (*in query*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#propagationPolicy" >}}">propagationPolicy</a>
|
||||
-->
|
||||
- **propagationPolicy** (*查询参数*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#propagationPolicy" >}}">propagationPolicy</a>
|
||||
|
||||
<!--
|
||||
- **resourceVersion** (*in query*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#resourceVersion" >}}">resourceVersion</a>
|
||||
-->
|
||||
- **resourceVersion** (*查询参数*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#resourceVersion" >}}">resourceVersion</a>
|
||||
|
||||
<!--
|
||||
- **resourceVersionMatch** (*in query*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#resourceVersionMatch" >}}">resourceVersionMatch</a>
|
||||
-->
|
||||
- **resourceVersionMatch** (*查询参数*): string
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#resourceVersionMatch" >}}">resourceVersionMatch</a>
|
||||
|
||||
<!--
|
||||
- **timeoutSeconds** (*in query*): integer
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#timeoutSeconds" >}}">timeoutSeconds</a>
|
||||
-->
|
||||
- **timeoutSeconds** (*查询参数*): integer
|
||||
|
||||
<a href="{{< ref "../common-parameters/common-parameters#timeoutSeconds" >}}">timeoutSeconds</a>
|
||||
|
||||
<!--
|
||||
#### Response
|
||||
|
||||
200 (<a href="{{< ref "../common-definitions/status#Status" >}}">Status</a>): OK
|
||||
|
||||
401: Unauthorized
|
||||
-->
|
||||
#### 响应
|
||||
|
||||
200 (<a href="{{< ref "../common-definitions/status#Status" >}}">Status</a>): OK
|
||||
|
||||
401: Unauthorized
|
||||
|
||||
Reference in New Issue
Block a user