Starting the DaoCloud Device Plugin
Start the DaoCloud device plugin on the master node. Before starting the plugin, obtain the TAR package of the video stream engine server for obtaining the audio and video data of the Kbox container.
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.
- Decompress DemoVideoEngine.tar.gz.
1 2
cd /home/k8s/ tar -xvf DemoVideoEngine.tar.gz
- Create a label (va-device=va-sg100) on the specified Kubernetes node.
1kubectl label nodes $NODENAME va-device=va-sg100
$NODENAME indicates the name of a worker node.
- Create a namespace va-plugin.
1kubectl create ns va-plugin
- Create a ConfigMap object named va-plugin and add the content of the config.yaml file to ConfigMap.
1 2
cd /home/k8s/k8s/script kubectl create cm -n va-plugin va-plugin-configs --from-file=config=config.yaml
- Change the image name of the DaoCloud device plugin.
1vi va-device-plugin.yamlChange the value of the following field to the actual value:
spec.spec.containers.image: Enter the name of the DaoCloud device plugin image imported to the worker node.
- Start the DaoCloud device plugin.
1 2
cd /home/k8s/k8s/script kubectl create -f va-device-plugin.yaml
You can run the kubectl delete -f va-device-plugin.yaml command to delete the DaoCloud device plugin.
- After the startup is complete, check whether the DaoCloud device plugin can run properly.
1kubectl get pods -A
It is expected that the STATUS column of Pods whose names start with va-device-plugin-daemonset is Running.