Skip to content

Instantly share code, notes, and snippets.

@grugnog
Last active October 11, 2023 10:20
Show Gist options
  • Select an option

  • Save grugnog/caa118205ad498423266f26150a5d555 to your computer and use it in GitHub Desktop.

Select an option

Save grugnog/caa118205ad498423266f26150a5d555 to your computer and use it in GitHub Desktop.
# Install these packages (use your favorite AUR tool here)
yay -S minikube kubectl docker-machine-driver-kvm2 libvirt qemu-headless ebtables
# Get libvirt going
sudo systemctl enable libvirtd.service
sudo usermod -a -G libvirt $(whoami)
# This fix thanks to http://blog.programmableproduction.com/2018/03/08/Archlinux-Setup-Minikube-using-KVM/
sudo virsh net-autostart default
# Configure minikube to use kvm by default
minikube config set driver kvm2
# Optional - use 1/4 (or you choose fraction) of total memory, default is only 2GB
MEMORY_FRACTION=4
minikube config set memory "$(($(free --mega | head -n2 | tail -n1 | cut -c15-27)/$MEMORY_FRACTION))"
# Restart required here - couldn't get it working just by starting services etc
sudo reboot
# Finally!
minikube start
kubectl cluster-info
# If you hit problems, be sure to run `minikube delete` before retrying
@rstacruz
Copy link
Copy Markdown

minikube and kubectl are now available in community :) docker-machine should also be not needed for this anymore.

@grugnog
Copy link
Copy Markdown
Author

grugnog commented Jan 13, 2020

@rstacruz - thanks, updated!

@harsxv
Copy link
Copy Markdown

harsxv commented Aug 24, 2020

Thanks for sharing.
For Manjaro, don't forget to do this: https://classicforum.manjaro.org/index.php?topic=25548.0
I needed it on my machine.

@Vetm
Copy link
Copy Markdown

Vetm commented Jan 28, 2021

vm-driver is deprecated. Please use minikube config set driver kvm2 instead.

@grugnog
Copy link
Copy Markdown
Author

grugnog commented Jan 28, 2021

@Vetm - thanks, updated!

@Hawaiideveloper
Copy link
Copy Markdown

Docker Shim is being deprecated, what is your suggestion going forward?

@bechampion
Copy link
Copy Markdown

@Hawaiideveloper that's down to kube default cri (maybe influenced by minikube addons conf etc)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment