Merge pull request #51622 from windsonsea/declass

[zh] Add glossary: deviceclass, resourceclaim, resourceclaimtempalte, resourceslice
pull/51813/head
Kubernetes Prow Robot 2025-08-06 06:19:25 -07:00 committed by GitHub
commit f32ccd2fda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 186 additions and 0 deletions

View File

@ -0,0 +1,46 @@
---
title: DeviceClass
id: deviceclass
date: 2025-05-26
full_link: /docs/concepts/scheduling-eviction/dynamic-resource-allocation/#deviceclass
short_description: >
集群中设备的一种分类。使用户可以申领 DeviceClass 中的特定设备。
tags:
- extension
---
<!--
title: DeviceClass
id: deviceclass
date: 2025-05-26
full_link: /docs/concepts/scheduling-eviction/dynamic-resource-allocation/#deviceclass
short_description: >
A category of devices in the cluster. Users can claim specific
devices in a DeviceClass.
tags:
- extension
-->
<!--
A category of {{< glossary_tooltip text="devices" term_id="device" >}} in the
cluster that can be used with dynamic resource allocation (DRA).
-->
集群中可用于动态资源分配DRA
的一类{{< glossary_tooltip text="设备" term_id="device" >}}。
<!--more-->
<!--
Administrators or device owners use DeviceClasses to define a set of devices
that can be claimed and used in workloads. Devices are claimed by creating
{{< glossary_tooltip text="ResourceClaims" term_id="resourceclaim" >}}
that filter for specific device parameters in a DeviceClass.
For more information, see
[Dynamic Resource Allocation](/docs/concepts/scheduling-eviction/dynamic-resource-allocation/#deviceclass)
-->
管理员或设备所有者使用 DeviceClass 来定义一组可以被申领并用于工作负载的设备。
申领设备的方式为创建
{{< glossary_tooltip text="ResourceClaims" term_id="resourceclaim" >}}
并针对 DeviceClass 中特定的设备参数进行筛选。
更多信息请参见[动态资源分配](/zh-cn/docs/concepts/scheduling-eviction/dynamic-resource-allocation/#deviceclass)。

View File

@ -0,0 +1,45 @@
---
title: ResourceClaim
id: resourceclaim
date: 2025-05-26
full_link: /docs/concepts/scheduling-eviction/dynamic-resource-allocation/#resourceclaims-templates
short_description: >
描述工作负载所需的资源例如设备。ResourceClaim 可以针对某些 DeviceClass 请求设备。
tags:
- workload
---
<!--
title: ResourceClaim
id: resourceclaim
date: 2025-05-26
full_link: /docs/concepts/scheduling-eviction/dynamic-resource-allocation/#resourceclaims-templates
short_description: >
Describes the resources that a workload needs, such as devices. ResourceClaims
can request devices from DeviceClasses.
tags:
- workload
-->
<!--
Describes the resources that a workload needs, such as
{{< glossary_tooltip text="devices" term_id="device" >}}. ResourceClaims are
used in
[dynamic resource allocation (DRA)](/docs/concepts/scheduling-eviction/dynamic-resource-allocation/)
to provide Pods with access to a specific resource.
-->
描述工作负载所需的资源,例如{{< glossary_tooltip text="设备" term_id="device" >}}。ResourceClaim
在[动态资源分配DRA](/zh-cn/docs/concepts/scheduling-eviction/dynamic-resource-allocation/)中用于为
Pod 提供对特定资源的访问能力。
<!--more-->
<!--
ResourceClaims can be created by workload operators or generated by Kubernetes
based on a
{{< glossary_tooltip text="ResourceClaimTemplate" term_id="resourceclaimtemplate" >}}.
-->
ResourceClaim 可以由工作负载运维人员手动创建,也可以由 Kubernetes 基于
{{< glossary_tooltip text="ResourceClaimTemplate" term_id="resourceclaimtemplate" >}}
自动生成。

View File

@ -0,0 +1,48 @@
---
title: ResourceClaimTemplate
id: resourceclaimtemplate
date: 2025-05-26
full_link: /docs/concepts/scheduling-eviction/dynamic-resource-allocation/#resourceclaims-templates
short_description: >
定义一个模板Kubernetes 据此创建 ResourceClaim。此模板用于为每个 Pod 提供对一些独立、相似的资源的访问权限。
tags:
- workload
---
<!--
title: ResourceClaimTemplate
id: resourceclaimtemplate
date: 2025-05-26
full_link: /docs/concepts/scheduling-eviction/dynamic-resource-allocation/#resourceclaims-templates
short_description: >
Defines a template for Kubernetes to create ResourceClaims. Used to provide
per-Pod access to separate, similar resources.
tags:
- workload
-->
<!--
Defines a template that Kubernetes uses to create
{{< glossary_tooltip text="ResourceClaims" term_id="resourceclaim" >}}.
ResourceClaimTemplates are used in
[dynamic resource allocation (DRA)](/docs/concepts/scheduling-eviction/dynamic-resource-allocation/)
to provide _per-Pod access to separate, similar resources_.
-->
定义一个模板Kubernetes 可据此创建
{{< glossary_tooltip text="ResourceClaim" term_id="resourceclaim" >}}。ResourceClaimTemplate
用于在[动态资源分配DRA](/zh/docs/concepts/scheduling-eviction/dynamic-resource-allocation/)中为每个
Pod 提供对一些独立、相似的资源的访问权限。
<!--more-->
<!--
When a ResourceClaimTemplate is referenced in a workload specification,
Kubernetes automatically creates ResourceClaim objects based on the template.
Each ResourceClaim is bound to a specific Pod. When the Pod terminates,
Kubernetes deletes the corresponding ResourceClaim.
-->
当工作负载规约中引用了 ResourceClaimTemplate 时,
Kubernetes 会基于模板自动创建 ResourceClaim 对象。
每个 ResourceClaim 都会绑定到一个特定的 Pod。
当 Pod 终止时Kubernetes 会删除相应的 ResourceClaim。

View File

@ -0,0 +1,47 @@
---
title: ResourceSlice
id: resourceslice
date: 2025-05-26
full_link: /docs/reference/kubernetes-api/workload-resources/resource-slice-v1beta1/
short_description: >
用一个相似资源所构成的池来表示一个或多个基础设施资源(如设备)。
tags:
- workload
---
<!--
title: ResourceSlice
id: resourceslice
date: 2025-05-26
full_link: /docs/reference/kubernetes-api/workload-resources/resource-slice-v1beta1/
short_description: >
Represents one or more infrastructure resources, like devices, in a pool of
similar resources.
tags:
- workload
-->
<!--
Represents one or more infrastructure resources, such as
{{< glossary_tooltip text="devices" term_id="device" >}}, that are attached to
nodes. Drivers create and manage ResourceSlices in the cluster. ResourceSlices
are used for
[dynamic resource allocation (DRA)](/docs/concepts/scheduling-eviction/dynamic-resource-allocation/).
-->
表示挂接到节点上的一个或多个基础设施资源,
例如{{< glossary_tooltip text="设备" term_id="device" >}}。
驱动会在集群中创建并管理 ResourceSlice。ResourceSlice
用于[动态资源分配DRA](/zh-cn/docs/concepts/scheduling-eviction/dynamic-resource-allocation/)。
<!--more-->
<!--
When a {{< glossary_tooltip text="ResourceClaim" term_id="resourceclaim" >}} is
created, Kubernetes uses ResourceSlices to find nodes that have access to
resources that can satisfy the claim. Kubernetes allocates resources to the
ResourceClaim and schedules the Pod onto a node that can access the resources.
-->
当 {{< glossary_tooltip text="ResourceClaim" term_id="resourceclaim" >}}
被创建时Kubernetes 使用 ResourceSlice 找到有权限访问满足申领资源的节点。
Kubernetes 将这些资源分配给 ResourceClaim并将对应的 Pod 调度到能够访问这些资源的节点上。