Skip to main content

Command Palette

Search for a command to run...

Minikube Installation Guide

Published
2 min read

Step 1: Update System Packages

Update your package lists to make sure you are getting the latest version and dependencies.

/sudo apt update

Step 2: Install Required Packages

Install some basic required packages.

/sudo apt install -y curl wget apt-transport-https

Step 3: Install Docker

Minikube can run a Kubernetes cluster either in a VM or locally via Docker. This guide demonstrates the Docker method.

/sudo apt install -y docker.io

Start and enable Docker.

/sudo systemctl enable docker

Add current user to docker group

/sudo usermod -aG docker <current_user>

And reboot the system to take effect the changes you made in system

/sudo reboot

Step 4: Install Minikube

First, download the Minikube binary using curl

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

Make it executable and move it into your path

/chmod +x minikube

/sudo mv minikube /usr/local/bin/

Step 5: Install kubectl

Download kubectl, which is a Kubernetes command-line tool.

/curl -LO "[https://dl.k8s.io/release/$(curl](https://dl.k8s.io/release/$(curl) -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl/bin/linux/amd64/kubectl)"

Make it executable and move it into your path

/chmod +x kubectl

/sudo mv kubectl /usr/local/bin/

Step 6: Start Minikube

Now, you can start Minikube with the following command

/minikube start --driver=docker

Step 7: Check Cluster Status

Check the cluster status with

minikube status

Step 8: Stop Minikube

When you are done, you can stop the Minikube cluster with:

/minikube stop

Optional: Delete Minikube Cluster

If you wish to delete the Minikube cluster entirely, you can do so with:

/minikube delete

More from this blog

Viv's blog

30 posts