<p>Is it possible to use VDO on Kubernetes(with Docker containers)?</p>

<p>As far as I know, block devices are mountable - the problem here(I think) would be loading the VDO modules into the Docker container. I assume it's not possible to do it within the Docker container, so the responsibility lies on the host.</p>

user3285241
<p>Correct, it's not directly supported by <a href="https://kubernetes.io/docs/concepts/storage/volumes/" rel="nofollow noreferrer">Kubernetes</a> but you can always manage your VDO modules and <a href="https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/storage_administration_guide/vdo-quick-start" rel="nofollow noreferrer">volumes</a> at the host level. For example, mount the volumes under /mnt/vdo0 and then use them in a container with the <a href="https://kubernetes.io/docs/concepts/storage/volumes/#hostpath" rel="nofollow noreferrer"><code>HostPath</code></a> volume option. </p>

<p>You can also, for example, specify a VDO volume as the main graph directory for your <a href="https://docs.docker.com/v17.09/engine/reference/commandline/dockerd/" rel="nofollow noreferrer">docker daemon</a> with something like <code>/usr/bin/dockerd -g /mnt/vdo0</code> That will make your images and your non-external volume container storage stored in that directory.</p>
