This guide provides step-by-step instructions for installing Minikube on windows with pre-requisites. Minikube allows you to run a single-node Kubernetes cluster locally for development and testing purposes.
- Windows os
- Internet connection
- Container manager : Docker
- kubernetes cmd : kubectl
visit the below link to download and install the docker desktop.
https://docs.docker.com/desktop/install/windows-install/
Now open cmd and check installation.
docker --version
output:
Docker version 27.0.3, build 7d4bcd8
successfully installed docker on windows.
Now open poweshell and run below 2 commands.
New-Item -Path 'c:\' -Name 'minikube' -ItemType Directory -Force
Invoke-WebRequest -OutFile 'c:\minikube\minikube.exe' -Uri 'https://github.com/kubernetes/minikube/releases/latest/download/minikube-windows-amd64.exe' -UseBasicParsing
$oldPath = [Environment]::GetEnvironmentVariable('Path', [EnvironmentVariableTarget]::Machine)
if ($oldPath.Split(';') -inotcontains 'C:\minikube'){
[Environment]::SetEnvironmentVariable('Path', $('{0};C:\minikube' -f $oldPath), [EnvironmentVariableTarget]::Machine)
}
check the installation by
minikube version
output:
minikube version: v1.33.1
commit: 5883c09216182566a63dff4c326a6fc9ed2982ff
- Open powershell run below cmd to create brand new cluster.
minikube start
- Open powershell run below command to interact with your brand new cluster.
- Install curl if not availabe bydefault it is present.
curl.exe -LO "https://dl.k8s.io/release/v1.30.0/bin/windows/amd64/kubectl.exe"
kubectl get nodes
output:
NAME STATUS ROLES AGE VERSION
minikube Ready control-plane 3m54s v1.30.0
This shows your single node cluster in up and running.
When you are done, you can stop the Minikube cluster with:
minikube stop
If you wish to delete the Minikube cluster entirely, you can do so with:
minikube delete
That's it! You've successfully installed Minikube on Windows, and you can now start deploying Kubernetes applications for development and testing.