Orchestrate containers
You are free to choose any orchestrator to manage the containers running the ZED SDK.
Below are examples for two popular orchestrators: Docker Compose and Kubernetes.
Docker Compose
Docker Compose is quick to set up. You just need to make sure that every Docker runtime parameter mentioned in the rest of this documentation is also present in your docker-compose.yaml file:
- The
privilegedmode. - The
nvidiaruntime. - The
NVIDIA_DRIVER_CAPABILITIESenvironment variable. - The shared volumes.
The runtime: nvidia key requires the Compose file format 2.3 (or 2.4), which is why the examples below use that version.
Once you have completed the setup, you are ready to go. You can try it out with the example service we provide.
USB camera example
GMSL2 camera example (ZED X, ZED X One)
Kubernetes
To use Kubernetes, we recommend setting up a cluster with k3s. Adding NVIDIA® Container Runtime support to k3s takes a few steps, described here.
- Make sure the NVIDIA container runtime is properly installed. You can check it in the
/etc/docker/daemon.jsonfile:
- Add a
RuntimeClassto your Kubernetes configuration:
- Reference the runtime class in the target pod:
- You may also need to install the NVIDIA device plugin in your cluster (check the k8s-device-plugin repository for the latest release):
sudo k3s kubectl create -f https://raw.githubusercontent.com/NVIDIA/k8s-device-plugin/v0.14.1/nvidia-device-plugin.yml
Once you have completed the setup, you are ready to go. You can try it out with the example pod we provide.
Example pod configuration file for USB cameras
For GMSL2 cameras, add the same additional shared volumes as before.

