VOOZH about

URL: https://thenewstack.io/install-minikube-on-ubuntu-linux-for-easy-kubernetes-development/

⇱ Install Minikube on Ubuntu Linux for Easy Kubernetes Development - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2023-02-04 06:00:33
Install Minikube on Ubuntu Linux for Easy Kubernetes Development
tutorial,
Cloud Services / Kubernetes

Install Minikube on Ubuntu Linux for Easy Kubernetes Development

While you won't be deploying apps and services at scale, Minikube nonetheless is a great way to start learning how to work with Kubernetes.
Feb 4th, 2023 6:00am by Jack Wallen
👁 Featued image for: Install Minikube on Ubuntu Linux for Easy Kubernetes Development

I’ve long said that Kubernetes is far from user-friendly. Not only is deploying pods and services to a cluster a challenge, but simply getting the cluster up and running can be a real nightmare.

Fortunately, there are a few applications available that make deploying a Kubernetes-friendly environment relatively simple. I’ve already talked about deploying a Kubernetes cluster via MicroK8s and this time around we’ll do something similar with a tool called Minikube. The purpose of Minikube is to create a local Kubernetes cluster for development purposes. This means you won’t be deploying apps and services at scale with this platform. Instead, Minikube is a great way to start learning how to work with Kubernetes.

You can deploy Minikube on Linux, macOS, and Windows. Given Linux is my operating system of choice, I’ll demonstrate on Ubuntu Linux. With this tutorial, you should be able to get a Kubernetes environment up and running in less than five minutes.

Ready? Let’s get busy.

Requirements

To make this work, you’ll need a running instance of a Ubuntu-based Linux distribution and a user with sudo privileges. The minimum requirements of Minikube are:

  • Two CPUs or more
  • 2GB of free memory
  • 20GB of free disk space

With those requirements met, it’s time to install.

Installing Docker CE

Unlike regular Kubernetes, Minikube depends on Docker. So, before Minikube will function, you must first install the Docker runtime. Here’s how.

The first thing to do (after you’ve logged into your Ubuntu instance) is to add the official Docker GPG key with the command:

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

Next, add the Docker repository:

echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

Install the necessary dependencies with the following command:

sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release -y

Install the latest version of the Docker engine with these two commands:

sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io -y

Finally, add your user to the docker group with the command:

sudo usermod -aG docker $USER

Log out and log back in for the changes to take effect.

Docker is now installed.

Installing Minikube

Download the latest Minikube binary with the command:

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

Copy the file to the /usr/local/bin directory with the command:

sudo cp minikube-linux-amd64 /usr/local/bin/minikube

Give the Minikube executable the proper permissions with:

sudo chmod +x /usr/local/bin/minikube

Next, we need to install the kubectl command line utility. Download the binary executable file with:

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

Give the new file the executable permission with:

chmod +x kubectl

Move the file into /usr/local/bin with the command:

sudo mv kubectl /usr/local/bin/

You can now start Minikube with the command:

minikube start --driver=docker

After the command completes, you can verify it’s running properly with the command:

minikube status

The output will look like the following:

minikube
type: Control Plane
host: Running
kubelet: Running
apiserver: Running
kubeconfig: Configured

Using kubectl via Minikube

With Minikube ready, you can now start to play around with Kubernetes. For example, you can check on the status of the cluster with the command:

kubetcl get-nodes

The output of the command will look something like this:

Kubernetes control plane is running at https://192.168.49.2:8443
CoreDNS is running at https://192.168.49.2:8443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy

To further debug and diagnose cluster problems, use ‘kubectl cluster-info dump

Check the status of the nodes with the command:

NAME       STATUS   ROLES           AGE   VERSION
minikube   Ready    control-plane   16m   v1.25.3

Installing Add-ons

Minkube also includes a number of add-ons to extend the feature set, such as ingress, metrics server, and dashboard. To find out what add-ons are available, issue the command:

minikube addons list

Let’s say you want to add the Dashboard add-on, which can be achieved with the command:

minikube addons enable dashboard

The output of the command will include the address used to access your new Dashboard. Of course, the caveat to this is that it’ll be a local address, such as 127.0.0.1, and you can’t access it from outside the machine hosting Minikube. Because of this, your best bet is to install and use Minikube on a Linux distribution that has a desktop, otherwise, the Dashboard won’t be accessible.

Other than that, you can start developing or learning the ropes of Kubernetes with the help of Minikube. You certainly won’t be using Minikube in a production environment, but as a development environment, it’s hard to be this simple to use the Kubernetes platform.

TRENDING STORIES
Jack Wallen is what happens when a Gen Xer mind-melds with present-day snark. Jack is a seeker of truth and a writer of words with a quantum mechanical pencil and a disjointed beat of sound and soul. Although he resides...
Read more from Jack Wallen
SHARE THIS STORY
TRENDING STORIES
TNS owner Insight Partners is an investor in: Docker.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.