vpu: mount myd_ion device for topology hints to work

Previously, /dev/ion device was just arbitrary string and the plugin
did not need the device for anything. After adding the checks for
topology hints, the device node must be bind mounted in the plugin
container.

Signed-off-by: Alek Du <alek.du@intel.com>
This commit is contained in:
Alek Du 2020-03-06 15:42:30 +08:00
parent 9565363626
commit 05fee4bf41

View File

@ -25,6 +25,9 @@ spec:
securityContext: securityContext:
readOnlyRootFilesystem: true readOnlyRootFilesystem: true
volumeMounts: volumeMounts:
- name: devion
mountPath: /dev/ion
readOnly: true
- name: devfs - name: devfs
mountPath: /dev/bus/usb mountPath: /dev/bus/usb
readOnly: true readOnly: true
@ -39,6 +42,10 @@ spec:
- name: kubeletsockets - name: kubeletsockets
mountPath: /var/lib/kubelet/device-plugins mountPath: /var/lib/kubelet/device-plugins
volumes: volumes:
- name: devion
hostPath:
path: /dev/ion
type: CharDevice
- name: devfs - name: devfs
hostPath: hostPath:
path: /dev/bus/usb path: /dev/bus/usb