Installation MiniKube
Last updated
Last updated
In this lesson, we will walk through the process of installing Minikube on different operating systems—Windows, macOS, and Linux. By the end of this lesson, you will have Minikube installed and ready to run your first local Kubernetes cluster.
Minikube can be installed using package managers, directly via a downloadable binary, or through other methods specific to your operating system.
Step 1: Install a Hypervisor
Ensure that Hyper-V or another supported hypervisor (like VirtualBox or Docker) is installed and enabled.
If using Hyper-V:
Enable Hyper-V via the "Windows Features" menu.
Restart your machine if required.
Step 2: Download Minikube
Open PowerShell or Command Prompt as an Administrator.
Run the following command to download and install Minikube:
If you don't have Chocolatey installed, you can download the Minikube binary directly from the and add it to your PATH.
Step 3: Verify Installation
After installation, verify that Minikube is installed by running:
This command should display the version of Minikube installed on your system.
Step 1: Install a Hypervisor
You can use Docker Desktop, HyperKit, or VirtualBox. Docker Desktop is recommended as it integrates well with Minikube.
Install Docker Desktop by downloading it from the Docker website.
Step 2: Install Minikube via Homebrew
Open your Terminal and run the following command to install Minikube using Homebrew:
Step 3: Verify Installation
Verify that Minikube is installed by running:
This command should show the installed Minikube version.
Step 1: Install a Hypervisor
KVM, VirtualBox, or Docker are common choices for Linux. For high performance, KVM is recommended.
To install KVM, run the following commands:
Step 2: Download and Install Minikube
You can install Minikube using a package manager or by downloading the binary.
Using a Package Manager (Debian/Ubuntu):
Using Binary Download:
Step 3: Verify Installation
Check that Minikube is properly installed by running:
This command will display the installed Minikube version.
After installing Minikube, the next step is to start your first Kubernetes cluster.
Open your terminal or command prompt and start Minikube by running:
This command will create and start a local Kubernetes cluster. By default, Minikube will choose the best virtualization option based on your system.
To check if your cluster is running correctly, use the following command:
You should see a single node listed, indicating that Minikube has successfully started the cluster.
Minikube comes with a built-in Kubernetes dashboard that provides a web-based UI to interact with your cluster.
To launch the dashboard, run:
This command will open the Kubernetes dashboard in your default web browser.
Use the dashboard to explore various Kubernetes components like Pods, Deployments, and Services. The dashboard is a great tool for visualizing and managing your cluster.
If you want to stop the Minikube cluster or delete it altogether:
To stop the Minikube cluster without deleting it, run:
To delete the Minikube cluster, use:
If you don’t have Homebrew installed, you can install it from , or download the Minikube binary directly from the and add it to your PATH.
Download the latest release of Minikube from the and install it: