How to mount /dev/kvm in a non-privileged pod?

12/8/2019

My pod needs to access /dev/kvm but it cannot run as privileged for security reasons.

How do I do this in Kubernetes?

-- Nick
kubernetes

1 Answer

12/9/2019

There is a device-plugin called KVM Device Plugin that serves exactly for this purpose.

This software is a kubernetes device plugin that exposes /dev/kvm from the system.

-- mario
Source: StackOverflow