Home Ubuntu How to Install Minikube for Kubernetes on Ubuntu 24.04

How to Install Minikube for Kubernetes on Ubuntu 24.04

Minikube is a tool that allows you to run a Kubernetes cluster on your local machine, which is especially useful for developers who want to test and develop Kubernetes applications locally.

Minikube supports different Kubernetes features and can be run on various operating systems, including Linux, macOS, and Windows. It’s a great way to get hands-on experience with Kubernetes without needing a full-scale cloud environment.

Prerequisites

Before installing Minikube, ensure that your Ubuntu 24.04 system meets the following requirements:

  • A 64-bit Ubuntu 24.04 system
  • At least 2 GB of RAM
  • Virtualization support enabled in BIOS
  • Docker or VirtualBox installed
  • Stable internet connection

This article will guide you through installing Minikube on your Ubuntu 24.04 system.

Step 1: Install Dependencies for Minikube

First, you need to update the system package list and install necessary dependencies like curl, wget, apt-transport-https, and VirtualBox.

sudo apt-get update -y 
sudo apt upgrade -y
sudo apt install -y curl apt-transport-https
sudo apt install -y virtualbox virtualbox-ext-pack

Step 2: Install Kubectl in Ubuntu

Next, you need to install kubectl, which is a command-line tool for interacting with Kubernetes clusters.

curl -LO "https://dl.k8s.io/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl"
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
Install Kubectl in Ubuntu
Install Kubectl in Ubuntu

Step 3: Install Minikube in Ubuntu

Now you can download and install the latest version of Minikube using the following commands.

curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
sudo install minikube-linux-amd64 /usr/local/bin/minikube
Install Minikube in Ubuntu
Install Minikube in Ubuntu

Now, you can start Minikube, which will download and set up the required components.

minikube start --driver=virtualbox
Start Minikube on Ubuntu
Start Minikube on Ubuntu

To check if Minikube is running correctly, use:

kubectl get nodes

You should see a single node named minikube in the output.

Verify Minikube on Ubuntu
Verify Minikube on Ubuntu

Step 4: Managing Minikube in Ubuntu

Here are some basic commands to manage Minikube:

To stop the Minikube cluster, run:

minikube stop

To delete the Minikube cluster, run:

minikube delete

Minikube provides a web-based dashboard, you can access it by running:

minikube dashboard
Minikube Dashboard on Ubuntu
Minikube Dashboard on Ubuntu

After running the command, your default web browser will automatically open, and you’ll be directed to the Minikube dashboard. If it doesn’t open automatically, the terminal output will provide a URL that you can copy and paste into your web browser’s address bar.

Minikube Kubernetes Dashboard
Minikube Kubernetes Dashboard

Once logged in, you’ll have access to various information and controls related to your Minikube cluster, including nodes, pods, deployments, services, and more. You can use the dashboard to monitor and manage your Kubernetes cluster visually.

Conclusion

You’ve successfully installed Minikube on your Ubuntu 24.04 system! With Minikube, you can start exploring Kubernetes and develop your containerized applications locally.

Remember to regularly check for updates to Minikube and Kubernetes to ensure you have the latest features and security patches.

Ravi Saive
I am an Experienced GNU/Linux expert and a full-stack software developer with over a decade in the field of Linux and Open Source technologies. Founder of TecMint.com, LinuxShellTips.com, and Fossmint.com. Over 150+ million people visited my websites.

Each tutorial at UbuntuMint is created by a team of experienced writers so that it meets our high-quality standards.

Was this article helpful? Please add a comment to show your appreciation and support.

Got something to say? Join the discussion.

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published or shared. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.