How To Install MiniKube In VirtualBox On Windows 10

You can install minikube and kubectl on windows 10 machines. we need to install Virtualbox on the machine. Let’s see, how to install minikube on windows.

Prerequisite:

  • 20 GB HDD space
  • 2 GB RAM
  • 2 vCPU

How To Install MiniKube In VirtualBox On Windows 10

Minikube is a standalone Kubernetes cluster that can be used for testing and development purposes only. we’re going to install it on VirtualBox. your machine must have support for the virtualization. you can check it using the below command.

Check Out: How To Configure Master Kubernetes With Worker Node On Linux

Open the Command Prompt and run “systeminfo“. if you see the output like below, means your system has already installed hypervisor and you can skip this step. 

Hyper-V Requirements: A hypervisor has been detected. Features required for Hyper-V will not be displayed.

You will need a hypervisor on your machine either “Hyper-V” or “Virtualbox“. I will install VirtualBox on Windows 10. we can download VirtualBox from the official website.

Run the setup and click on “Next“. 

Click on “Next“. 

Click on “Finish” and open the VirtualBox. 

Install Kubectl On Windows 10:

We also need to install kubectl on windows using the below command and download the setup then install it.

curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.19.0/bin/windows/amd64/kubectl.exe

Check Out: Install and Secure phpMyAdmin On Ubuntu 20.04 / 19.10

Install Minikube on Window 10:

Method 1:

Now, we can use the below command to install it from Command prompt or you can manually download the file.

choco install minikube 

Run the minikube setup file and click on “Next“.

Click on “I Agree” and install it. 

Once the installation is finished. we need to copy the minikube set up in the C drive and create a folder "Kubernetes" then rename the file name as
"minikube". you have to copy the path and set in the environment variables. 

Right, Click on “Computer properties” -> click on “Advanced system settings” -> Click on “Envrionmental variables“. 

Click on “New” and set the path. 

Once the path is set, we need to copy both kubectl and minikube files to the C:\Kubernetes folder. you can also check the version using the below command.

kubectl version --client

Exit the command prompt and open it again. we will start installing the minikube on windows 10.

Check Out: How To Install Fedora 32 Workstation Server On Vmware

Method 2:

Before running the minikube, you can check the minikube command.

Open the command prompt and run the below command to install it on VirtualBox. It will take a few minutes to install depending on your internet speed. 

minikube start --driver=virtualbox

Now minikube is installed on the VirtualBox and we can check the status with the below command.

minikube status

minikube on windows

We can check the master nodes’ status as shown in the figure.

kubectl get nodes

install minikube on windows 10

If you want to get more information about the cluster, you can use the below command.

kubectl get nodes -o wide

how to install kubectl and minikube on windows

Check the minikube version.

minikube windows 10

Check Out: Install Single Master Kubernetes Using Kubectl On CentOS 7

You can also access the minikube by doing ssh from the windows terminal with the below command.

minikube ssh

check minikube version

We can also check the minikube IP address with minikube ip command.

We’ve successfully installed minikube on VirtualBox using the windows platform.

That’s it.

Share on:

I'm the founder of Curious Viral. I hope this blog will provide you complete information about Linux Technology & I would like to share my technical knowledge with you which I have learned during this period.

Other Posts You May Like...

Leave a comment