preloader
  • Home
  • How to Install Minikube on Linux Quickly and Easily (only 5 minutes)

Minikube is a lightweight tool that allows you to run a local Kubernetes cluster, making it ideal for developers and DevOps teams to test and deploy applications quickly and efficiently. Learn how to install and configure Minikube on Linux with this step-by-step guide.

blog-thumb

📖 Estimated reading time: 2 min


If you want to run Kubernetes locally for development and testing

Minikube is an excellent option. In this quick guide, you will learn how to install Minikube on Linux simply and efficiently.


Prerequisites

Before starting, ensure your system meets the following requirements:

* Linux (Ubuntu, Debian, Fedora, etc.)

* 64-bit processor

* At least 2 CPUs, 2 GB of RAM and 20 GB of free disk space (I recommend at least double)

* Docker installed (or another virtualization driver such as VirtualBox or KVM)


Step-by-Step Guide to Installing Minikube on Linux


Install Dependencies

Run the following command to ensure all essential dependencies are installed:


$ sudo apt update && sudo apt install -y curl conntrack
 

(For Debian/Ubuntu-based distributions. If using Fedora or another distribution, adjust the command as needed.)


Download and Install Minikube

Download the latest binary and install it:


$ curl -LO https://github.com/kubernetes/minikube/releases/latest/download/minikube-linux-amd64

$ sudo install minikube-linux-amd64 /usr/local/bin/minikube && rm minikube-linux-amd64
 

After installation, verify that Minikube was installed correctly:


$ minikube version

minikube version: v1.35.0
commit: dd5d320e41b5451cdf3c01891bc4e13d189586ed-dirty
 

Install kubectl (if not already installed)

kubectl is the official tool for managing Kubernetes clusters. Install it with:


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

$ sudo install kubectl /usr/local/bin/
 

Verify the installation:


$ kubectl version --client

Client Version: v1.32.3
Kustomize Version: v5.5.0
 

Install Docker

$ curl -fsSL https://get.docker.com -o get-docker.sh

$ sh get-docker.sh

$ sudo chmod 766 /var/run/docker.sock

$ sudo usermod -aG docker ${USER}
  

Verify that Docker is working:

$ docker run hello-world

Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
e6590344b1a5: Pull complete
Digest: sha256:7e1a4e2d11e2ac7a8c3f768d4166c2defeb09d2a750b010412b6ea13de1efb19
Status: Downloaded newer image for hello-world:latest

Hello from Docker!
This message shows that your installation appears to be working correctly.
 

Start Minikube

Now it’s time to start your local Kubernetes cluster!


$ time minikube start --listen-address=0.0.0.0 --cpus=4 --memory=7938 --driver=docker
 
Minikube Start

(The driver can be changed to kvm2, virtualbox, etc., depending on your environment.)


To verify that everything is running correctly:


$ kubectl get nodes

NAME       STATUS   ROLES           AGE     VERSION
minikube   Ready    control-plane   4m47s   v1.32.0
 

Very easy, right? 🤠


Conclusion

Now you have Minikube running on your Linux system and can start testing applications on Kubernetes locally. To learn more, check out the official Minikube documentation.

If this tutorial was helpful, share it with your fellow DevOps professionals! 🚀



Share this post and keep following our site for more updates on Kubernetes and open-source technologies!

Check out these other interesting articles!! 🔥



Support us 💖

Do you like what you find here? With every click on a banner, you help keep this site alive and free. Your support makes all the difference so that we can continue to bring you the content you love. Thank you very much! 😊


Articles you might like 📌
comments powered by Disqus