Kubernetes – Setting up kubernetes cluster for development on Windows 10 box using minikube

Hi All,
Greetings for the day!!!
We are continuing series on Kubernetes – simplifying the concepts..
In one of our previous kubernetes article – Kubernetes simplifying: Setting up local environment – creating Kubernetes cluster locally (helps in Interview Preparation) – Kubernetes for beginners we discussed setup Kubernetes cluster using Minikube on Linux / Ubuntu box
In this article we will discuss setting up Kubernetes cluster on Windows box on my local environment. I am using Windows 10 and setting up Kubernetes cluster on my local Windows 10 box using Minikube
Take away from this article
- What is Minikube
- Prerequisites required for Minikube
- How to enable Hyper-V on Windows 10
- What is Kubectl
- How to install Kubectl on Windows 10
- What is Minikube
- How to install Minikube on Windows 10
What is Minikube
- Minikube is light weight utility which creates a Virtual Machine (VM) on our local environment and creates Kubernetes cluster with single node
- We use Minikube for learning and development purpose
- Minikube CLI is available which provides basic commands to start, stop, delete and status of Minikube
Prerequisites
- Hyper-V enabled for Windows box
- Kubectl utility
If Hyper-V is not enabled for our Windows box then we can unable it from “Control Panel”
Enabling Hyper-V on Windows 10
- Navigate to “Control Panel >> Programs >> Get programs” as in below fig
- Next, click on link “Turn Windows features on or off” from left side menu as in below fig
- From the dialog “Windows Features” check the Hyper-V check box as shown in below fig
Installing Kubectl utility
- What is Kubectl command line utility – We have very detailed article, please have a look – Kubernetes – kubectl command line utility
- Download Kubectl or use following command
curl -LO "https://dl.k8s.io/release/v1.24.0/bin/windows/amd64/kubectl.exe"
- Once installed successfully, we can verify it by using different options with Kubectl version command as
kubectl version

kubectl version --short

For more details following two commands
kubectl version --output=yaml


Installing Minikube utility
- Download Minikube utility from – https://storage.googleapis.com/minikube/releases/latest/minikube-installer.exe
- Execute the executable to start Minikube utility and proceed as per the below steps shown in below figuers
- Once Minikube utility installed successfully, we could start our cluster with – minikube start command
minikube start

- As Kubernetes cluster starts successfully, we could check the the status of minikube using minikube status command as
minikube status

- As cluster starts we are ready to host containers and creating Kubernetes objects like – PODs , Deployments etc.
- We could get the Kubernetes cluster using – kubectl cluster-info cmdlet
kubectl cluster-info
I’ll stop here now. In next upcoming articles we will discuss more about Kubernetes objects
Thanks for reading!!! Please feel free to discuss in case any issue / thoughts / queries
HAVE A WONDERFUL TIME AHEAD!!! LIFE IS BEAUTIFUL 🙂
3 Responses
[…] Kubernetes – Setting up kubernetes cluster for development on Windows 10 box using minikube […]
[…] If you do not know how to setup or configure minikube on local box please refer my previous article – Kubernetes – Setting up kubernetes cluster for development on Windows 10 box using minikube […]
[…] Kubernetes – Setting up kubernetes cluster for development on Windows 10 box using minikube […]
You must log in to post a comment.