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 16:10:26 +08:00
parent 8267074202
commit 8798201bac

View File

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