Minikube on Arch Linux
k8s minikubeMinikube is a tool to run Kubernetes locally, it runs a single-node Kubernetes on your machine.
install dependencies
You need the following packages installed and also add yourself to the libvirt groupg.
sudo pacman -Sy libvirt qemu ebtables dnsmasq newgrp libvirt sudo usermod -a -G libvirt $(whoami)
starting the libvirt services on system boot
Starting the libvirtd
and virtlogd
at system startup.
sudo systemctl start libvirtd.service sudo systemctl enable libvirtd.service sudo systemctl start virtlogd.service sudo systemctl enable virtlogd.service
installing docker dependencies
Add some docker tools.
sudo pacman -Sy docker-machine yaourt -Sy docker-machine-driver-kvm2 yaourt -Sy minikube-bin kubectl-bin minikube config set vm-driver kvm2 # set default driver for start commands kubectl config set-context $(kubectl config current-context) --namespace=apollo
checking the installed binaries
minikube version whereis kubectl kubectl version
startup
# starting minikube minikube start --vm-driver kvm2 # start the dashboard minikube dashboard # check status minikube status # show logs minikube logs
this should give you something like:
host: Running kubelet: Running apiserver: Running kubectl: Correctly Configured: pointing to minikube-vm at 192.168.39.54
reset minikube config
If something goes wrong, or you end up in a corrupted state, you can try to remove the current config and redownload the VM
minikube stop
rm -rf ~/.minikube
minikube delete
sudo systemctl restart libvirtd.service
sudo systemctl restart virtlogd.service
some links