forked from siderolabs/extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnvidia-fabricmanager.yaml
74 lines (74 loc) · 1.64 KB
/
nvidia-fabricmanager.yaml
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
62
63
64
65
66
67
68
69
70
71
72
73
74
# https://docs.nvidia.com/datacenter/tesla/pdf/fabric-manager-user-guide.pdf
name: nvidia-fabricmanager
container:
entrypoint: /usr/local/bin/nv-fabricmanager
args:
- --config
- /usr/local/share/nvidia/nvswitch/fabricmanager.cfg
mounts:
# device files
- source: /dev
destination: /dev
type: bind
options:
- rshared
- rbind
- rw
# shared libraries
- source: /lib64
destination: /lib64
type: bind
options:
- bind
- ro
# shared libraries
- source: /usr/local/glibc
destination: /usr/local/glibc
type: bind
options:
- bind
- ro
# nvidia libraries
- source: /usr/local/lib
destination: /usr/local/lib
type: bind
options:
- bind
- ro
# service state file
- source: /var/run/nvidia-fabricmanager
destination: /var/run/nvidia-fabricmanager
type: bind
options:
- rshared
- rbind
- rw
# log files
- source: /var/log
destination: /var/log
type: bind
options:
- rshared
- rbind
- rw
# fabric topology files
- source: /usr/local/share/nvidia/nvswitch
destination: /usr/local/share/nvidia/nvswitch
type: bind
options:
- rshared
- rbind
- ro
# binaries
- source: /usr/local/bin
destination: /usr/local/bin
type: bind
options:
- bind
- ro
depends:
- service: cri
# we need to depend on udevd so that the nvidia device files are created
- service: udevd
- path: /sys/bus/pci/drivers/nvidia
restart: always