nre-learning / antidote-selfmedicate

Configs and scripts for spinning up a local instance of Antidote on your laptop for testing and lesson development
Apache License 2.0
12 stars 19 forks source link

Make it an option to use qemu/kvm for minikube for better performance #21

Closed olberger closed 5 years ago

olberger commented 5 years ago

Minikube can be run with the --vm-driver kvm2 option (see https://github.com/kubernetes/minikube/blob/master/docs/drivers.md#kvm2-driver) to use a qemu/kvm VM instead of VirtualBox, when on Linux, and if the machine handles nested-virtualization.

I've juste added the option to selfmedicate.sh and the labs seem a bit faster from what I can see on my machine.

Of course YMMV, and a proper benchmark could be necessary.

I guess it could be made optional when/if people are running the script on Linux, and libvirt and other requirements are met, of course.

Other than that I'm not so sure everything else is the same, like mounting stuff to the guest VM...

Hope this helps,

cloudtoad commented 5 years ago

Did you just add/replace that option in the script or did you make it optional via some command-line argument?

olberger commented 5 years ago

I just added the option to minikube start inside the script, for the moment.

cloudtoad commented 5 years ago

Alright, I'll work on making it a command-line option...

olberger commented 5 years ago

Btw, I think @blinklet used that approach when testing Antidote: http://www.brianlinkletter.com/install-antidote-nre-labs-network-emulator-linux/