Is there a way to enable nested virtualization in GKE cluster node?

3/19/2020

I am trying to use KubeVirt with GKE cluster.

I found I am able to create a nested virtualization enabled GCP VM, but I didn't find a way to achieve the same thing for GKE cluster node.

If I cannot enable nested virtualization for GKE cluster node, I can only use the kubevirt with debug.useEmulation which is not what I want.

Thanks

-- chen lin
google-kubernetes-engine
kubernetes
virtual-machine

1 Answer

3/20/2020

Currently nested virtualization is available only on GCE as per this docs.

There is already question regarding supporting Nested Virtualization on GKE and it can be found here. I'd say it's not introduced yet, thats why you cannot find proper documentation about GKE and nested virtualization.

Also please consider that GCP and GKE are quite different.

Google Compute Engine VM instance is unmanaged by google. So besides ready base image, you can do whatever you need, like it would be normal VM.

However, Google Kubernetes Engine was created especially for containers. Thoses VMs are managed by google. GKE already creates Cluster for you and all VMs are automatically part of the cluster. In GKE you are unable to run Minikube or Kubeadm.

Here you have some characteristics of GKE

-- PjoterS
Source: StackOverflow