Minikube + Kubernetes Installation Guide (Ubuntu 24.04 LTS)
Fri Sep 05 2025
π Minikube + Kubernetes Installation Guide (Ubuntu 24.04 LTS)
This guide explains how to set up Minikube (a lightweight Kubernetes) on Ubuntu 24.04 LTS.
It is beginner-friendly and includes small definitions for clarity.
π Prerequisites
Before starting, make sure you have:
- β Ubuntu 24.04 (64-bit) system
- β Internet access
- β A non-root user (weβll use kuberuser)
- β Docker installed
π³ Step 1: Install Docker
Docker is required as the container runtime for Minikube.
sudo apt update
sudo apt install -y docker.io
Enable and start Docker:
sudo systemctl enable docker
sudo systemctl start docker
π€ Step 2: Add a Non-Root User
It is safer to run Kubernetes as a non-root user.
sudo adduser kuberuser
sudo usermod -aG docker kuberuser
Now logout and login as kuberuser:
su - kuberuser
βοΈ Step 3: Install kubectl (Kubernetes CLI)
kubectl
is the official CLI to manage Kubernetes clusters.
curl -LO "https://dl.k8s.io/release/v1.33.1/bin/linux/amd64/kubectl"
chmod +x kubectl
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
Verify installation:
kubectl version --client
π¦ Step 4: Install Minikube
Minikube creates a local Kubernetes cluster.
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
chmod +x minikube-linux-amd64
sudo install minikube-linux-amd64 /usr/local/bin/minikube
π Step 5: Start Minikube
Start Minikube with Docker as the driver (as kuberuser):
minikube start --driver=docker
β Step 6: Verify the Cluster
Check nodes and pods:
kubectl get nodes
kubectl get pods -A
Or use Minikubeβs built-in kubectl:
minikube kubectl -- get nodes
π Step 7: Launch Minikube Dashboard (Optional)
The dashboard provides a web UI to manage your cluster.
minikube dashboard
π Optional: Use Minikube Tunnel
To expose NodePort or LoadBalancer services on localhost:
minikube tunnel
π Common Commands
Here are some frequently used commands:
Command | Description |
---|---|
minikube start | Starts the cluster |
minikube stop | Stops the cluster |
minikube delete | Deletes the cluster |
kubectl get pods -A | Lists all running pods |
minikube ssh | SSH into the Minikube VM |
minikube dashboard | Launch the web UI |
minikube kubectl -- get nodes | Use bundled kubectl if path issues occur |
π― Conclusion
You now have a fully working Minikube + Kubernetes setup on Ubuntu 24.04.
This is perfect for learning, testing, and practicing Kubernetes locally before moving to cloud or production environments.