Skip to content

Commit 5532976

Browse files
committed
nfd: add rule to label different GPU platforms
With the GPU nfdhook removal, add some of the 'platform_*' labels back via NFD rules. Signed-off-by: Tuomas Katila <[email protected]>
1 parent 80ee520 commit 5532976

File tree

2 files changed

+341
-0
lines changed

2 files changed

+341
-0
lines changed

deployments/nfd/overlays/node-feature-rules/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
resources:
44
- node-feature-rules.yaml
5+
- platform-labeling-rules.yaml
Lines changed: 340 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,340 @@
1+
apiVersion: nfd.k8s-sigs.io/v1alpha1
2+
kind: NodeFeatureRule
3+
metadata:
4+
name: intel-gpu-platform-labeling
5+
spec:
6+
rules:
7+
- labels:
8+
gpu.intel.com/platform_MAX1xxx.present: "true"
9+
labelsTemplate: "gpu.intel.com/platform_MAX1xxx.count={{ len .pci.device }}"
10+
matchFeatures:
11+
- feature: pci.device
12+
matchExpressions:
13+
class:
14+
op: In
15+
value:
16+
- "0380"
17+
vendor:
18+
op: In
19+
value:
20+
- "8086"
21+
device:
22+
op: In
23+
value:
24+
- "0bda"
25+
- "0bd5"
26+
- "0bd9"
27+
- "0bdb"
28+
- "0bd7"
29+
- "0bd6"
30+
- "0bd0"
31+
name: intel.gpu
32+
- labels:
33+
gpu.intel.com/platform_FLEX1xx.present: "true"
34+
labelsTemplate: "gpu.intel.com/platform_FLEX1xx.count={{ len .pci.device }}"
35+
matchFeatures:
36+
- feature: pci.device
37+
matchExpressions:
38+
class:
39+
op: In
40+
value:
41+
- "0380"
42+
vendor:
43+
op: In
44+
value:
45+
- "8086"
46+
device:
47+
op: In
48+
value:
49+
- "56c0"
50+
- "56c1"
51+
name: intel.gpu
52+
- labels:
53+
gpu.intel.com/platform_ALCHEMIST.present: "true"
54+
labelsTemplate: "gpu.intel.com/platform_ALCHEMIST.count={{ len .pci.device }}"
55+
matchFeatures:
56+
- feature: pci.device
57+
matchExpressions:
58+
class:
59+
op: In
60+
value:
61+
- "0300"
62+
vendor:
63+
op: In
64+
value:
65+
- "8086"
66+
device:
67+
op: In
68+
value:
69+
- "56a6"
70+
- "56a5"
71+
- "56a1"
72+
- "56a0"
73+
- "5694"
74+
- "5693"
75+
- "5692"
76+
- "5691"
77+
- "5690"
78+
- "56b3"
79+
- "56b2"
80+
- "56a4"
81+
- "56a3"
82+
- "5697"
83+
- "5696"
84+
- "5695"
85+
- "56b1"
86+
- "56b0"
87+
name: intel.gpu
88+
- labels:
89+
gpu.intel.com/platform_RAPTORLAKE_P.present: "true"
90+
labelsTemplate: "gpu.intel.com/platform_RAPTORLAKE_P.count={{ len .pci.device }}"
91+
matchFeatures:
92+
- feature: pci.device
93+
matchExpressions:
94+
class:
95+
op: In
96+
value:
97+
- "0300"
98+
vendor:
99+
op: In
100+
value:
101+
- "8086"
102+
device:
103+
op: In
104+
value:
105+
- "a7a9"
106+
- "a7a8"
107+
- "a7a1"
108+
- "a7a0"
109+
- "a721"
110+
- "a720"
111+
name: intel.gpu
112+
- labels:
113+
gpu.intel.com/platform_RAPTORLAKE_S.present: "true"
114+
labelsTemplate: "gpu.intel.com/platform_RAPTORLAKE_S.count={{ len .pci.device }}"
115+
matchFeatures:
116+
- feature: pci.device
117+
matchExpressions:
118+
class:
119+
op: In
120+
value:
121+
- "0300"
122+
vendor:
123+
op: In
124+
value:
125+
- "8086"
126+
device:
127+
op: In
128+
value:
129+
- "a78b"
130+
- "a78a"
131+
- "a789"
132+
- "a788"
133+
- "a783"
134+
- "a782"
135+
- "a781"
136+
- "a780"
137+
name: intel.gpu
138+
- labels:
139+
gpu.intel.com/platform_DG1.present: "true"
140+
labelsTemplate: "gpu.intel.com/platform_DG1.count={{ len .pci.device }}"
141+
matchFeatures:
142+
- feature: pci.device
143+
matchExpressions:
144+
class:
145+
op: In
146+
value:
147+
- "0300"
148+
- "0380"
149+
vendor:
150+
op: In
151+
value:
152+
- "8086"
153+
device:
154+
op: In
155+
value:
156+
- "4905"
157+
- "4907"
158+
name: intel.gpu
159+
- labels:
160+
gpu.intel.com/platform_ALDERLAKE_S.present: "true"
161+
labelsTemplate: "gpu.intel.com/platform_ALDERLAKE_S.count={{ len .pci.device }}"
162+
matchFeatures:
163+
- feature: pci.device
164+
matchExpressions:
165+
class:
166+
op: In
167+
value:
168+
- "0300"
169+
vendor:
170+
op: In
171+
value:
172+
- "8086"
173+
device:
174+
op: In
175+
value:
176+
- "4680"
177+
- "4682"
178+
- "4688"
179+
- "468a"
180+
- "468b"
181+
- "4690"
182+
- "4692"
183+
- "4693"
184+
name: intel.gpu
185+
- labels:
186+
gpu.intel.com/platform_ALDERLAKE_N.present: "true"
187+
labelsTemplate: "gpu.intel.com/platform_ALDERLAKE_N.count={{ len .pci.device }}"
188+
matchFeatures:
189+
- feature: pci.device
190+
matchExpressions:
191+
class:
192+
op: In
193+
value:
194+
- "0300"
195+
vendor:
196+
op: In
197+
value:
198+
- "8086"
199+
device:
200+
op: In
201+
value:
202+
- "46d0"
203+
- "46d1"
204+
- "46d2"
205+
name: intel.gpu
206+
- labels:
207+
gpu.intel.com/platform_ALDERLAKE.present: "true"
208+
labelsTemplate: "gpu.intel.com/platform_ALDERLAKE.count={{ len .pci.device }}"
209+
matchFeatures:
210+
- feature: pci.device
211+
matchExpressions:
212+
class:
213+
op: In
214+
value:
215+
- "0300"
216+
vendor:
217+
op: In
218+
value:
219+
- "8086"
220+
device:
221+
op: In
222+
value:
223+
- "4626"
224+
- "4628"
225+
- "462a"
226+
- "46a0"
227+
- "46a1"
228+
- "46a2"
229+
- "46a3"
230+
- "46a6"
231+
- "46a8"
232+
- "46aa"
233+
- "46b0"
234+
- "46b1"
235+
- "46b2"
236+
- "46b3"
237+
- "46c0"
238+
- "46c1"
239+
- "46c2"
240+
- "46c3"
241+
name: intel.gpu
242+
- labels:
243+
gpu.intel.com/platform_ROCKETLAKE.present: "true"
244+
labelsTemplate: "gpu.intel.com/platform_ROCKETLAKE.count={{ len .pci.device }}"
245+
matchFeatures:
246+
- feature: pci.device
247+
matchExpressions:
248+
class:
249+
op: In
250+
value:
251+
- "0300"
252+
vendor:
253+
op: In
254+
value:
255+
- "8086"
256+
device:
257+
op: In
258+
value:
259+
- "4c8a"
260+
- "4c8b"
261+
- "4c90"
262+
- "4c9a"
263+
- "4c8c"
264+
- "4c80"
265+
name: intel.gpu
266+
- labels:
267+
gpu.intel.com/platform_JASPERLAKE.present: "true"
268+
labelsTemplate: "gpu.intel.com/platform_JASPERLAKE.count={{ len .pci.device }}"
269+
matchFeatures:
270+
- feature: pci.device
271+
matchExpressions:
272+
class:
273+
op: In
274+
value:
275+
- "0300"
276+
vendor:
277+
op: In
278+
value:
279+
- "8086"
280+
device:
281+
op: In
282+
value:
283+
- "4e71"
284+
- "4e61"
285+
- "4e57"
286+
- "4e55"
287+
- "4e51"
288+
name: intel.gpu
289+
- labels:
290+
gpu.intel.com/platform_ELKHARTLAKE.present: "true"
291+
labelsTemplate: "gpu.intel.com/platform_ELKHARTLAKE.count={{ len .pci.device }}"
292+
matchFeatures:
293+
- feature: pci.device
294+
matchExpressions:
295+
class:
296+
op: In
297+
value:
298+
- "0300"
299+
vendor:
300+
op: In
301+
value:
302+
- "8086"
303+
device:
304+
op: In
305+
value:
306+
- "4571"
307+
- "4557"
308+
- "4555"
309+
- "4551"
310+
- "4541"
311+
name: intel.gpu
312+
- labels:
313+
gpu.intel.com/platform_TIGERLAKE.present: "true"
314+
labelsTemplate: "gpu.intel.com/platform_TIGERLAKE.count={{ len .pci.device }}"
315+
matchFeatures:
316+
- feature: pci.device
317+
matchExpressions:
318+
class:
319+
op: In
320+
value:
321+
- "0300"
322+
vendor:
323+
op: In
324+
value:
325+
- "8086"
326+
device:
327+
op: In
328+
value:
329+
- "9a59"
330+
- "9a60"
331+
- "9a68"
332+
- "9a70"
333+
- "9a49"
334+
- "9a40"
335+
- "9a78"
336+
- "9ac0"
337+
- "9ac9"
338+
- "9ad9"
339+
- "9af8"
340+
name: intel.gpu

0 commit comments

Comments
 (0)