How to Install Minikube on Debian 10

Install Minikube on Debian 10

In this article, we will have explained the necessary steps to install and set up Minikube on Debian 10. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.

Minikube is a free and open-source Kubernetes implementation that allows you to create a virtual machine locally on your PC and deploy a simple one-cluster node. Minikube provides a command-line interface that enables you to manage cluster operations such as starting, stopping, and deleting nodes from the cluster. It’s is a great tool to experiment and learn Kubernetes.

Install Minikube on Debian 10

Step 1. The first command will update the package lists to ensure you get the latest version and dependencies.

sudo apt update
sudo apt upgrade
sudo apt install curl wget apt-transport-https

Step 2. Install KVM hypervisor.

Run the following command below to install KVM:

sudo apt install qemu-kvm libvirt-daemon libvirt-daemon-system virtinst bridge-utils

Step 3. Install Minikube on the Debian system.

Now download the latest Minikube library from the official website:

wget https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64

Next, copy the binary file to the /usr/local/bin path:

sudo cp minikube-linux-amd64 /usr/local/bin/minikube
sudo chmod +x /usr/local/bin/minikube

Confirm version installed:

minikube version

Step 4. Install Kubectl on the Debian system.

Now download the Kubectl binary file from the official website:

curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl

Next, make the kubectl binary executable:

chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin

Once done, check Kubectl version:

kubectl version -o yaml

Now that components are installed, you can start minikube. VM image will be downloaded and configured for Kubernetes single node cluster:

minikube start

To check cluster status, run:

kubectl cluster-info

You can access Minikube on the command-line by running the command:

minikube ssh

Additionally, to get a glance at kubectl’s default configuration, run the command:

kubectl config view

Step 5. Enable Kubernetes Dashboard.

Kubernetes comes with built-in dashboard that allows you to manage your cluster.  The dashboard add-on is installed and enabled by default on minikube:

minikube addons list

To activate the Kubernetes dashboard, execute:

minikube dashboard

To get the URL of the dashboard:

$ minikube dashboard --url
http://192.168.77.21:30000

That’s all you need to do to install the Minikube on Debian 10 Buster. I hope you find this quick tip helpful. For further reading on Minikube, please refer to their official knowledge base. If you have questions or suggestions, feel free to leave a comment below.