Atlas inference product and Ascend Device Plugin are deployed on Volcano, and the dynamic virtualization function is enabled. After a job is delivered, a virtual device is successfully created, but the inference job fails to be executed.
If an inference job container is run by a common user, the following problems may occur. As a result, the common user fails to access the vNPU device in the root group, and the inference service container fails to run.
command: [ "/bin/bash", "-c", "--"]
args: [ "device-plugin -useAscendDocker=true -volcanoType=true
-logFile=/var/log/mindx-dl/devicePlugin/devicePlugin.log -logLevel=0" ]
securityContext:
privileged: true
readOnlyRootFilesystem: true
imagePullPolicy: Never
volumeMounts:
- name: device-plugin
mountPath: /var/lib/kubelet/device-plugins
... # Several fields are omitted here.
- name: tmp
mountPath: /tmp
- name: dev
mountPath: /dev # Mount /dev.
env:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
volumes:
- name: device-plugin
hostPath:
path: /var/lib/kubelet/device-plugins
... # Several fields are omitted here.
- name: tmp
hostPath:
path: /tmp
- name: dev # Mount /dev.
hostPath:
path: /dev