-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathdaemonset.yaml
More file actions
61 lines (61 loc) · 1.68 KB
/
daemonset.yaml
File metadata and controls
61 lines (61 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: test-amdgpu-device-config-manager
labels:
app: amdgpu-device-config-manager
spec:
selector:
matchLabels:
app: amdgpu-device-config-manager
template:
metadata:
labels:
app: amdgpu-device-config-manager
spec:
serviceAccountName: amd-gpu-operator-config-manager
initContainers:
- command:
- sh
- -c
- while [ ! -d /host-sys/class/kfd ] || [ ! -d /host-sys/module/amdgpu/drivers/
]; do echo "amdgpu driver is not loaded "; sleep 2 ;done
image: busybox:1.36
imagePullPolicy: IfNotPresent
name: driver-init
securityContext:
privileged: true
volumeMounts:
- mountPath: /host-sys
name: sys-volume
containers:
- name: amdgpu-device-config-manager-container
image: "docker.io/rocm/device-config-manager:v1.4.1"
imagePullPolicy: Always
env:
- name: DS_NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
securityContext:
privileged: true
volumeMounts:
- mountPath: /dev
name: dev-volume
- mountPath: /sys
name: sys-volume
- mountPath: /etc/config-manager/
name: config-manager-config-volume
workingDir: /root
volumes:
- hostPath:
path: /dev
type: Directory
name: dev-volume
- hostPath:
path: /sys
type: Directory
name: sys-volume
- name: config-manager-config-volume
configMap:
name: config-manager-config