Skip to content

Commit f32ccd2

Browse files
authored
Merge pull request #51622 from windsonsea/declass
[zh] Add glossary: deviceclass, resourceclaim, resourceclaimtempalte, resourceslice
2 parents d0bdbd4 + 88f06b1 commit f32ccd2

File tree

4 files changed

+186
-0
lines changed

4 files changed

+186
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
title: DeviceClass
3+
id: deviceclass
4+
date: 2025-05-26
5+
full_link: /docs/concepts/scheduling-eviction/dynamic-resource-allocation/#deviceclass
6+
short_description: >
7+
集群中设备的一种分类。使用户可以申领 DeviceClass 中的特定设备。
8+
tags:
9+
- extension
10+
---
11+
<!--
12+
title: DeviceClass
13+
id: deviceclass
14+
date: 2025-05-26
15+
full_link: /docs/concepts/scheduling-eviction/dynamic-resource-allocation/#deviceclass
16+
short_description: >
17+
A category of devices in the cluster. Users can claim specific
18+
devices in a DeviceClass.
19+
tags:
20+
- extension
21+
-->
22+
23+
<!--
24+
A category of {{< glossary_tooltip text="devices" term_id="device" >}} in the
25+
cluster that can be used with dynamic resource allocation (DRA).
26+
-->
27+
集群中可用于动态资源分配(DRA)
28+
的一类{{< glossary_tooltip text="设备" term_id="device" >}}。
29+
30+
<!--more-->
31+
32+
<!--
33+
Administrators or device owners use DeviceClasses to define a set of devices
34+
that can be claimed and used in workloads. Devices are claimed by creating
35+
{{< glossary_tooltip text="ResourceClaims" term_id="resourceclaim" >}}
36+
that filter for specific device parameters in a DeviceClass.
37+
38+
For more information, see
39+
[Dynamic Resource Allocation](/docs/concepts/scheduling-eviction/dynamic-resource-allocation/#deviceclass)
40+
-->
41+
管理员或设备所有者使用 DeviceClass 来定义一组可以被申领并用于工作负载的设备。
42+
申领设备的方式为创建
43+
{{< glossary_tooltip text="ResourceClaims" term_id="resourceclaim" >}},
44+
并针对 DeviceClass 中特定的设备参数进行筛选。
45+
46+
更多信息请参见[动态资源分配](/zh-cn/docs/concepts/scheduling-eviction/dynamic-resource-allocation/#deviceclass)
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
title: ResourceClaim
3+
id: resourceclaim
4+
date: 2025-05-26
5+
full_link: /docs/concepts/scheduling-eviction/dynamic-resource-allocation/#resourceclaims-templates
6+
short_description: >
7+
描述工作负载所需的资源,例如设备。ResourceClaim 可以针对某些 DeviceClass 请求设备。
8+
9+
tags:
10+
- workload
11+
---
12+
<!--
13+
title: ResourceClaim
14+
id: resourceclaim
15+
date: 2025-05-26
16+
full_link: /docs/concepts/scheduling-eviction/dynamic-resource-allocation/#resourceclaims-templates
17+
short_description: >
18+
Describes the resources that a workload needs, such as devices. ResourceClaims
19+
can request devices from DeviceClasses.
20+
21+
tags:
22+
- workload
23+
-->
24+
25+
<!--
26+
Describes the resources that a workload needs, such as
27+
{{< glossary_tooltip text="devices" term_id="device" >}}. ResourceClaims are
28+
used in
29+
[dynamic resource allocation (DRA)](/docs/concepts/scheduling-eviction/dynamic-resource-allocation/)
30+
to provide Pods with access to a specific resource.
31+
-->
32+
描述工作负载所需的资源,例如{{< glossary_tooltip text="设备" term_id="device" >}}。ResourceClaim
33+
[动态资源分配(DRA)](/zh-cn/docs/concepts/scheduling-eviction/dynamic-resource-allocation/)中用于为
34+
Pod 提供对特定资源的访问能力。
35+
36+
<!--more-->
37+
38+
<!--
39+
ResourceClaims can be created by workload operators or generated by Kubernetes
40+
based on a
41+
{{< glossary_tooltip text="ResourceClaimTemplate" term_id="resourceclaimtemplate" >}}.
42+
-->
43+
ResourceClaim 可以由工作负载运维人员手动创建,也可以由 Kubernetes 基于
44+
{{< glossary_tooltip text="ResourceClaimTemplate" term_id="resourceclaimtemplate" >}}
45+
自动生成。
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
title: ResourceClaimTemplate
3+
id: resourceclaimtemplate
4+
date: 2025-05-26
5+
full_link: /docs/concepts/scheduling-eviction/dynamic-resource-allocation/#resourceclaims-templates
6+
short_description: >
7+
定义一个模板,Kubernetes 据此创建 ResourceClaim。此模板用于为每个 Pod 提供对一些独立、相似的资源的访问权限。
8+
9+
tags:
10+
- workload
11+
---
12+
<!--
13+
title: ResourceClaimTemplate
14+
id: resourceclaimtemplate
15+
date: 2025-05-26
16+
full_link: /docs/concepts/scheduling-eviction/dynamic-resource-allocation/#resourceclaims-templates
17+
short_description: >
18+
Defines a template for Kubernetes to create ResourceClaims. Used to provide
19+
per-Pod access to separate, similar resources.
20+
21+
tags:
22+
- workload
23+
-->
24+
25+
<!--
26+
Defines a template that Kubernetes uses to create
27+
{{< glossary_tooltip text="ResourceClaims" term_id="resourceclaim" >}}.
28+
ResourceClaimTemplates are used in
29+
[dynamic resource allocation (DRA)](/docs/concepts/scheduling-eviction/dynamic-resource-allocation/)
30+
to provide _per-Pod access to separate, similar resources_.
31+
-->
32+
定义一个模板,Kubernetes 可据此创建
33+
{{< glossary_tooltip text="ResourceClaim" term_id="resourceclaim" >}}。ResourceClaimTemplate
34+
用于在[动态资源分配(DRA)](/zh/docs/concepts/scheduling-eviction/dynamic-resource-allocation/)中为每个
35+
Pod 提供对一些独立、相似的资源的访问权限。
36+
37+
<!--more-->
38+
39+
<!--
40+
When a ResourceClaimTemplate is referenced in a workload specification,
41+
Kubernetes automatically creates ResourceClaim objects based on the template.
42+
Each ResourceClaim is bound to a specific Pod. When the Pod terminates,
43+
Kubernetes deletes the corresponding ResourceClaim.
44+
-->
45+
当工作负载规约中引用了 ResourceClaimTemplate 时,
46+
Kubernetes 会基于模板自动创建 ResourceClaim 对象。
47+
每个 ResourceClaim 都会绑定到一个特定的 Pod。
48+
当 Pod 终止时,Kubernetes 会删除相应的 ResourceClaim。
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
title: ResourceSlice
3+
id: resourceslice
4+
date: 2025-05-26
5+
full_link: /docs/reference/kubernetes-api/workload-resources/resource-slice-v1beta1/
6+
short_description: >
7+
用一个相似资源所构成的池来表示一个或多个基础设施资源(如设备)。
8+
9+
tags:
10+
- workload
11+
---
12+
<!--
13+
title: ResourceSlice
14+
id: resourceslice
15+
date: 2025-05-26
16+
full_link: /docs/reference/kubernetes-api/workload-resources/resource-slice-v1beta1/
17+
short_description: >
18+
Represents one or more infrastructure resources, like devices, in a pool of
19+
similar resources.
20+
21+
tags:
22+
- workload
23+
-->
24+
25+
<!--
26+
Represents one or more infrastructure resources, such as
27+
{{< glossary_tooltip text="devices" term_id="device" >}}, that are attached to
28+
nodes. Drivers create and manage ResourceSlices in the cluster. ResourceSlices
29+
are used for
30+
[dynamic resource allocation (DRA)](/docs/concepts/scheduling-eviction/dynamic-resource-allocation/).
31+
-->
32+
表示挂接到节点上的一个或多个基础设施资源,
33+
例如{{< glossary_tooltip text="设备" term_id="device" >}}。
34+
驱动会在集群中创建并管理 ResourceSlice。ResourceSlice
35+
用于[动态资源分配(DRA)](/zh-cn/docs/concepts/scheduling-eviction/dynamic-resource-allocation/)
36+
37+
<!--more-->
38+
39+
<!--
40+
When a {{< glossary_tooltip text="ResourceClaim" term_id="resourceclaim" >}} is
41+
created, Kubernetes uses ResourceSlices to find nodes that have access to
42+
resources that can satisfy the claim. Kubernetes allocates resources to the
43+
ResourceClaim and schedules the Pod onto a node that can access the resources.
44+
-->
45+
当 {{< glossary_tooltip text="ResourceClaim" term_id="resourceclaim" >}}
46+
被创建时,Kubernetes 使用 ResourceSlice 找到有权限访问满足申领资源的节点。
47+
Kubernetes 将这些资源分配给 ResourceClaim,并将对应的 Pod 调度到能够访问这些资源的节点上。

0 commit comments

Comments
 (0)