Search code examples
dockerkubernetesduplicatesredhat

VDO on Kubernetes


Is it possible to use VDO on Kubernetes(with Docker containers)?

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.


Solution

  • Correct, it's not directly supported by Kubernetes but you can always manage your VDO modules and volumes at the host level. For example, mount the volumes under /mnt/vdo0 and then use them in a container with the HostPath volume option.

    You can also, for example, specify a VDO volume as the main graph directory for your docker daemon with something like /usr/bin/dockerd -g /mnt/vdo0 That will make your images and your non-external volume container storage stored in that directory.