Minikube Installation Process

Minikube Installation Process

This guide provides step-by-step instructions for installing Minikube on Ubuntu. Minikube allows you to run a single-node Kubernetes cluster locally for development and testing purposes.

Step 1: Update System Packages

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

sudo apt update        
Article content

Step 2: Install Required Packages

Install some basic required packages.

sudo apt install -y curl wget apt-transport-https        
Article content

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        
Article content

Start and enable Docker.

sudo systemctl enable --now docker        

Add current user to docker group (To use docker without root)

sudo usermod -aG docker $USER && newgrp docker        

Now, logout (use exit command) and connect again.


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/        
Article content

Step 5: Install kubectl

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

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

Check above image ⬆️ Make it executable and move it into your path:

chmod +x kubectl
sudo mv kubectl /usr/local/bin/        
Article content

Step 6: Start Minikube

Now, you can start Minikube with the following command:

minikube start --driver=docker        

This command will start a single-node Kubernetes cluster inside a Docker container.


Step 7: Check Cluster Status

Check the cluster status with:

minikube status        
Article content

You can also use kubectl to interact with your cluster:

kubectl get nodes        

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        


To view or add a comment, sign in

More articles by Bhim kumar

  • Important Terminology and Concepts of Terraform

    Provider: A provider is a plugin for Terraform that defines and manages resources for a specific cloud or…

  • Set up a Kubernetes cluster using Kubeadm

    Pre-requisites: Ubuntu OS (Xenial or later) Create two aws instance of t2.medium type, one for master and one for…

  • Java CI-CD Project :Github-Jenkins-Maven-Tomcat

    Jenkins CI/CD project with GitHub webhook integration for Deploying Java project on Tomcat server using Maven…

    1 Comment
  • CI/CD Project with Github-Jenkins-Sonarqube-Docker

    Jenkins CI/CD pipeline with GitHub webhook integration for Deploying CSS project on EC2 instances using Docker and…

    1 Comment
  • Understand Docker Networking !!!

    Docker networking refers to the way Docker containers communicate with each other and with the outside world. Docker…

  • Dockerfile Simplified !!!

    A Dockerfile is a text-based script used to define the configuration and steps required to build a Docker container…

Explore content categories