From 05fee4bf419e748becec8f3f3227e6356f90ecd4 Mon Sep 17 00:00:00 2001 From: Alek Du Date: Fri, 6 Mar 2020 15:42:30 +0800 Subject: [PATCH] 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 --- deployments/vpu_plugin/base/intel-vpu-plugin.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/deployments/vpu_plugin/base/intel-vpu-plugin.yaml b/deployments/vpu_plugin/base/intel-vpu-plugin.yaml index 329c1c1c..ad5fae13 100644 --- a/deployments/vpu_plugin/base/intel-vpu-plugin.yaml +++ b/deployments/vpu_plugin/base/intel-vpu-plugin.yaml @@ -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