Skip to content

enabling nested virtualization in gcp for minikube tests #8730

@medyagh

Description

@medyagh

we added minikube tests that will run in a disposable GCP project (as required by sig-infra)
kubernetes/test-infra#35739

However we found out the tests are signifacntly slower than the Smaller instance in GCP with enabled nested virtualization (currently hosted in internal gcp project by google)

to enable that, we need disk images that support nested virtualization. (instead of vanila ubuntu 24).

in the current set up we spin up a new gcp project using boskos api and the project is destroyed after each test which means we can not have a disk image that we can use for nested-virtualization enabled instances

we already verified that we have added --enable-nested-virtualization

I would like to know what the test-infra suggests to solve this issue.

Example of test duration results are explained here
kubernetes/minikube#21826

Prow (32 cores - big instance - slower tests results):
https://storage.googleapis.com/kubernetes-ci-logs/pr-logs/pull/minikube/21556/integration-kvm-docker-linux-x86-64/1982572213521354752/artifacts/test.html

minikube internal gcp project (8cores much smaller instance):
https://storage.googleapis.com/minikube-builds/logs/master/42124/KVM_Linux.html

Benchmark Example (Prow) (32 cores n2) :
TestKubernetesUpgrade | 676.92 seconds

Benchmark Minikube Jenkins (8 cores n2):
TestKubernetesUpgrade | 208.78

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-sigIndicates an issue or PR lacks a `sig/foo` label and requires one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions