Running the Hook Script
Run the hook script on all worker nodes.
- 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.
- 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/
- 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.
1sed -i 's|BinaryName = "/usr/bin/va-container-runtime"|BinaryName ="/usr/local/sbin/oci-device-hook.sh"|g' /etc/containerd/config.toml
- Restart containerd.
1systemctl restart containerd
Parent topic: Operating a Video Stream Cloud Phone Instance