February 22, 2020

Install MiniKube on Windows 10

Minikube is a tool that lets you test out and develop kubernetes (k8s) configs/deployments/etc locally before you push the working configs up to your live kubernetes (k8s) cluster(s).

Install MiniKube on Windows 10

What is MiniKube?

Minikube is a tool that makes it easy to run Kubernetes locally. Minikube runs a single-node Kubernetes cluster inside a Virtual Machine (VM) on your laptop for users looking to try out Kubernetes or develop with it day-to-day.
source: https://kubernetes.io/docs/setup/learning-environment/minikube/

Install MiniKube

You need to have chocolatey installed for your windows 10 computer

choco install minikube

Start Minikube

This will spin you up a single node k8s cluster, one windows 10 the easiest way is just use hyperv. If you have windows 10 pro you can install hyperv easily

minikube start --vm-driver=hyperv
HyperV based cluster creation

Verify Minikube

PS ...\kubernetes> minikube status
host: Running
kubelet: Running
apiserver: Running
kubeconfig: Configured
If you go into Hyper-V manager you'll see minikube running

Stop Minikube

When you're done just run

minikube stop

Start Minikube

If you need to spin up a cluster you already started and setup a driver for just run

minikube start