You can enable Kubernetes to run virtual machines using Virtlet. Virtlet enables you to run unmodified QEMU/KVM virtual machines that do not include an additional containerd layer as in similar solutions in Kubernetes.
Virtlet requires the --feature-gates=MountPropagation=true
feature gate
to be enabled in the Kubernetes API server and on all kubelet
instances.
This feature is enabled by default in MCP. Using this feature,
Virtlet can create or delete network namespaces assigned to VM pods.
Caution
Virtlet with OpenContrail is available as technical preview. Use such configuration for testing and evaluation purposes only.