Running minikube in Fedora

To install and run minikube in Fedora, we first need to install a Hypervisor. In the example below, I will be installing KVM by installing the virtualisation options available in Fedora ( Note: It is also possible to just install KVM -

Fedora - Virtualisation

Fedora uses the libvirt family of tools as its virtualisation solution.

# Fedora virtualisation libraries
sudo dnf group install --with-optional virtualization

# Start and enable the kvm daemon
sudo systemctl enable libvirtd
sudo systemctl start libvirtd

The commands above install the virtualisation libraries required by minikube.

KVM might request for root password when initialising VMs. To make our life easier, just add your user as a member of the libvirt group created. Also, make sure that the user is a member of the docker group.

sudo usermod -a -G libvirt $USER

minikube and kubectl

Now that KVM is installed in the system, I can proceed to download/install minikube and kubectl. Detailed instruction can be found here: minikube and kubectl.

# minikube
curl -Lo minikube   && chmod +x minikube
sudo mkdir -p /usr/local/bin/
sudo install minikube /usr/local/bin/

# kubectl
curl -LO`curl -s`/bin/linux/amd64/kubectl   && chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
kubectl version

Now that the minikube and kubectl binaries are in the system, lets proceed to start minikube using minikube start.

If everything is setup correctly, running kubectl get nodes will return an output similar to the one below.

minikube   Ready    master   15m   v1.16.2
Written on November 29, 2019