Skip to content

Commit 0f34a01

Browse files
committed
[zh] Add glossary: cel, device, and dra
1 parent a5bdf2c commit 0f34a01

File tree

3 files changed

+139
-0
lines changed

3 files changed

+139
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
title: 通用表达式语言(CEL)
3+
id: cel
4+
date: 2025-06-04
5+
full_link: https://cel.dev
6+
short_description: >
7+
一种为安全执行用户代码而设计的表达式语言。
8+
tags:
9+
- extension
10+
- fundamental
11+
aka:
12+
- CEL
13+
---
14+
<!--
15+
title: Common Expression Language
16+
id: cel
17+
date: 2025-06-04
18+
full_link: https://cel.dev
19+
short_description: >
20+
An expression language that's designed to be safe for executing user code.
21+
tags:
22+
- extension
23+
- fundamental
24+
aka:
25+
- CEL
26+
-->
27+
28+
<!--
29+
A general-purpose expression language that's designed to be fast, portable, and
30+
safe to execute.
31+
-->
32+
一种通用的表达式语言,其设计目标是快速执行、可移植,并且具备安全性。
33+
34+
<!--more-->
35+
36+
<!--
37+
In Kubernetes, CEL can be used to run queries and perform fine-grained
38+
filtering. For example, you can use CEL expressions with
39+
[dynamic admission control](/docs/reference/access-authn-authz/extensible-admission-controllers/)
40+
to filter for specific fields in requests, and with
41+
[dynamic resource allocation (DRA)](/docs/concepts/scheduling-eviction/dynamic-resource-allocation)
42+
to select resources based on specific attributes.
43+
-->
44+
在 Kubernetes 中,CEL 可用于运行查询并进行细粒度的筛选。例如,你可以将 CEL
45+
表达式用于[动态准入控制](/zh-cn/docs/reference/access-authn-authz/extensible-admission-controllers/)
46+
以筛选请求中的特定字段;也可以与[动态资源分配(DRA)](/zh-cn/docs/concepts/scheduling-eviction/dynamic-resource-allocation)结合使用,
47+
基于特定属性选择资源。
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
title: 设备
3+
id: device
4+
date: 2025-05-13
5+
short_description: >
6+
直接或间接挂接到集群节点上的所有资源,例如 GPU 或电路板。
7+
8+
tags:
9+
- extension
10+
- fundamental
11+
---
12+
<!--
13+
title: Device
14+
id: device
15+
date: 2025-05-13
16+
short_description: >
17+
Any resource that's directly or indirectly attached your cluster's nodes, like
18+
GPUs or circuit boards.
19+
20+
tags:
21+
- extension
22+
- fundamental
23+
-->
24+
25+
<!--
26+
One or more
27+
{{< glossary_tooltip text="infrastructure resources" term_id="infrastructure-resource" >}}
28+
that are directly or indirectly attached to your
29+
{{< glossary_tooltip text="nodes" term_id="node" >}}.
30+
-->
31+
一个或多个直接或间接挂接到{{< glossary_tooltip text="节点" term_id="node" >}}上的{{< glossary_tooltip text="基础设施资源" term_id="infrastructure-resource" >}}。
32+
33+
<!--more-->
34+
35+
<!--
36+
Devices might be commercial products like GPUs, or custom hardware like
37+
[ASIC boards](https://en.wikipedia.org/wiki/Application-specific_integrated_circuit).
38+
Attached devices usually require device drivers that let Kubernetes
39+
{{< glossary_tooltip text="Pods" term_id="pod" >}} access the devices.
40+
-->
41+
设备可以是如 GPU 等商业产品,也可以是如
42+
[ASIC 板卡](https://zh.wikipedia.org/zh-cn/%E7%89%B9%E5%AE%9A%E6%87%89%E7%94%A8%E7%A9%8D%E9%AB%94%E9%9B%BB%E8%B7%AF)
43+
等定制硬件。
44+
挂接的设备通常需要相应的设备驱动,才能让 Kubernetes 中的
45+
{{< glossary_tooltip text="Pod" term_id="pod" >}} 访问这些设备。
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
title: 动态资源分配
3+
id: dra
4+
date: 2025-05-13
5+
full_link: /docs/concepts/scheduling-eviction/dynamic-resource-allocation/
6+
short_description: >
7+
Kubernetes 提供的一项特性,用于在 Pod 之间请求和共享资源,例如硬件加速器。
8+
9+
aka:
10+
- DRA
11+
tags:
12+
- extension
13+
---
14+
<!--
15+
title: Dynamic Resource Allocation
16+
id: dra
17+
date: 2025-05-13
18+
full_link: /docs/concepts/scheduling-eviction/dynamic-resource-allocation/
19+
short_description: >
20+
A Kubernetes feature for requesting and sharing resources, like hardware
21+
accelerators, among Pods.
22+
23+
aka:
24+
- DRA
25+
tags:
26+
- extension
27+
-->
28+
29+
<!--
30+
A Kubernetes feature that lets you request and share resources among Pods.
31+
These resources are often attached
32+
{{< glossary_tooltip text="devices" term_id="device" >}} like hardware
33+
accelerators.
34+
-->
35+
Kubernetes 提供的一项特性,允许你在多个 Pod 之间请求和共享资源。
36+
这些资源通常是挂接的{{< glossary_tooltip text="设备" term_id="device" >}},例如硬件加速器。
37+
38+
<!--more-->
39+
40+
<!--
41+
With DRA, device drivers and cluster admins define device _classes_ that are
42+
available to _claim_ in workloads. Kubernetes allocates matching devices to
43+
specific claims and places the corresponding Pods on nodes that can access the
44+
allocated devices.
45+
-->
46+
借助 DRA,设备驱动和集群管理员可以定义设备的**类别**,这些类别可供工作负载中的 Pod 申领。
47+
Kubernetes 会将匹配的设备分配给特定的申领,并将相应的 Pod 调度到能够访问这些已分配设备的节点上。

0 commit comments

Comments
 (0)