Forked from grugnog/Arch linux minikube kvm2 setup
Created
September 4, 2019 21:55
-
-
Save miku/ee45815c263c66e2f692932af8943a9a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install these packages (use your favorite AUR tool here) | |
yay -S minikube-bin kubectl-bin docker-machine-driver-kvm2 libvirt qemu-headless docker-machine 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 vm-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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since
minikube
andkubectl
are now available in the community repo, I guess it's better to use them instead?