Skip to content

Commit cadf6e9

Browse files
amdliny2kenny-amd
authored andcommitted
Update mounts of labeller in helm chart
Labeller is for feature discovery and not necessarily assume amdgpu (/dev/kfd and /dev/dri) exists in system. Resolve issue #103
1 parent 61dd963 commit cadf6e9

File tree

2 files changed

+8
-24
lines changed

2 files changed

+8
-24
lines changed

helm/amd-gpu/templates/labeller.yaml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,25 +44,17 @@ spec:
4444
- name: sys
4545
mountPath: /sys
4646
readOnly: true
47-
- name: dev-kfd
48-
mountPath: /dev/kfd
49-
readOnly: true
50-
- name: dev-dri
51-
mountPath: /dev/dri
52-
readOnly: true
47+
- name: dev
48+
mountPath: /dev
5349
resources:
5450
{{- toYaml .Values.lbl.resources | nindent 10 }}
5551
volumes:
5652
- name: sys
5753
hostPath:
5854
path: /sys
5955
type: Directory
60-
- name: dev-kfd
61-
hostPath:
62-
path: /dev/kfd
63-
type: CharDevice
64-
- name: dev-dri
56+
- name: dev
6557
hostPath:
66-
path: /dev/dri
58+
path: /dev
6759
type: Directory
6860
{{- end }}

k8s-ds-amdgpu-labeller.yaml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,8 @@ spec:
7171
- name: sys
7272
mountPath: /sys
7373
readOnly: true
74-
- name: dev-kfd
75-
mountPath: /dev/kfd
76-
readOnly: true
77-
- name: dev-dri
78-
mountPath: /dev/dri
79-
readOnly: true
74+
- name: dev
75+
mountPath: /dev
8076
resources: {}
8177
# limits:
8278
# memory: 20Mi
@@ -89,11 +85,7 @@ spec:
8985
hostPath:
9086
path: /sys
9187
type: Directory
92-
- name: dev-kfd
93-
hostPath:
94-
path: /dev/kfd
95-
type: CharDevice
96-
- name: dev-dri
88+
- name: dev
9789
hostPath:
98-
path: /dev/dri
90+
path: /dev
9991
type: Directory

0 commit comments

Comments
 (0)