我要评分
获取效率
正确性
完整性
易理解

Running the Hook Script

Run the hook script on all worker nodes.

  1. Obtain the DemoVideoEngine.tar.gz software package based on Video Stream Engine, and upload the software package to the /home/k8s directory on the server.
  2. Copy the oci-device-hook.sh script in the /home/k8s/k8s/script directory to the /usr/local/sbin/ directory.
    1
    2
    cd /home/k8s/k8s/script
    cp oci-device-hook.sh /usr/local/sbin/
    
  3. Modify the containerd configuration by changing the container runtime added in Deploying the DaoCloud Device Plugin Image to /usr/local/sbin/oci-device-hook.sh.
    1
    sed -i 's|BinaryName = "/usr/bin/va-container-runtime"|BinaryName ="/usr/local/sbin/oci-device-hook.sh"|g' /etc/containerd/config.toml
    
  4. Restart containerd.
    1
    systemctl restart containerd