Configuring Minikube on Windows 10
By: Tola Ore-Aruwaji
Tags: DevOps, Windows 10, Minikube, Cloud, Kubernetes

MiniKube

INTRODUCTION

Configuring Minikube on windows can be discouraging because you can spend most of your time looking for the right requirements to install and also guidelines to follow.

This article is a step-by-step process on how to install Minikube.

Minikube is an open-source tool that enables you to run Kubernetes on your laptop or another local machine. It can work with Linux, Mac, and Windows operating systems. Minikube is a way to set up a 1 noded Kubernetes cluster running in a VM on top of a host. It can also be used to learn Kubernetes.

Essentials before getting started

Download Minikube from here

Hyper-V Installed on your window, check the installation guide here

STEPS

1. After downloading and installing Minikube, Run the .exe file on your machine. Note that the extension .exe is added.

2. Add this folder path (Minikube) location in path variable: “Advanced System Settings -> Advanced -> Environment Variables -> Path.” For example, if you have saved the file to C:/minikube then add this folder path to the path variable.

3. Run the Command prompt as an administrator on your PC and type in minikube `to check if Minikube is installed.

CMD on windows

4. Create your virtual switch manager from the Hyper-v manager.

Hyper-V Manager is an administrative tool to create, change, and delete virtual machines.

Open the Hyper-v manager

Open the Hyper-v manager

In the Hyper-V Manager, on the right panel, select the Virtual Switch Manager.

Select the virtual switch manager.

Next, we will create a virtual switch for Minikube. Select New virtual network switch on the left-hand side, select External for the type of virtual switch and then click the Create Virtual Switch button.

Click on New virtual switch, select external and click on create virtual switch.

Name the Switch My Virtual Switch and click the apply button

Once you have the switch created we are now ready to start Minikube. Run the following command to start the Minikube VM with our effective changes minikube start --vm-driver hyperv --hyperv-virtual-switch "My Virtual Switch"

In your administrator command line window enter minikube stop to stop the Minikube VM.

to stop the Minikube VM. When it has stopped open the Hyper-V manager, right-click on the Minikube VM and click on settings

Select the Memory option on the left panel, then de-select Enable Dynamic Memory, and then click Apply button.

De-select enable dynamic memory and click OK

After that, close the Hyper-V manager and return to your command line on the window and restart Minikube using the command minikube start

In your command line enter kubectl get pods -n kube-system

You should see an output like this

You can also open up the dashboard in the command line by entering this command minikube dashboard

You should see something like this

Congratulations you just configured minikube for your machine, get ready to start working/learning with Kubernetes.

You can follow me on Twitter or find me on GitHub

Follow us on Twitter 🐦 and Facebook 👥 and Instagram 📷 and join our Facebook and Linkedin Groups 💬.

To join our community Slack team chat 🗣️ read our weekly Faun topics 🗞️, and connect with the community 📣 click here⬇