Install Kubernetes on Windows 11 with Kind

Mutha Nagavamsi
2 min readOct 21, 2023

--

So, I am documenting the process I followed to Install Kubernetes on Windows 11 using Kind.

What is Kind? It’s a tool that can install local Kubernetes clusters using docker containers.

Prerequisites:

First, install Docker for windows. Steps to Install are here. Video tutorial is here.

Then install Kubectl for windows by following this.

Once that’s done. Install Kind from PowerShell. Run the following command.

Setting up Kind.

It’s a tool that will help us to create Kubernetes cluster on top of Docker containers.

curl.exe -Lo kind-windows-amd64.exe https://kind.sigs.k8s.io/dl/v0.20.0/kind-windows-amd64
Move-Item .\kind-windows-amd64.exe D:\Kind\kind.exe

On windows find for “Advanced system settings” > Click on “Environment Variables” under “System Variables” set new “Path” variable to D:\Kind

Note, you can change the location from D:\Kind\kind.exe to whatever you like.

More useful information here.

Follow this video guide.

Installing Kubernetes on Local Windows 11 and ArgoCD after K8s Setup.

Create the kind.yaml file with following content.

# This config file contains all config fields with comments
# NOTE: this is not a particularly useful config file
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
# 1 control plane node and 3 workers
nodes:
# the control plane node config
- role: control-plane
# the three workers
- role: worker
- role: worker
- role: worker

Use the following command to create your kind cluster.

kind create cluster --config kind.yaml --name my-cluster

Use the following command to delete your kind cluster.

kind delete clusters my-cluster

If you need kubernetes cluster with ingress support, use the following kind.yaml config

kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
kubeadmConfigPatches:
- |
kind: InitConfiguration
nodeRegistration:
kubeletExtraArgs:
node-labels: "ingress-ready=true"
extraPortMappings:
- containerPort: 80
hostPort: 80
protocol: TCP
- containerPort: 443
hostPort: 443
protocol: TCP
# the three workers
- role: worker
- role: worker
- role: worker

Use the following command to create kind kubernetes cluster.

kind create cluster --config kind.yaml --name my-cluster

To access the cluster and run required command I also recommend installing.

Others tools:

Git bash can be installed from here.

Visual Studio Code can be installed from here.

--

--

Mutha Nagavamsi

I'm Building a 100K Community of Happy People. 65771 on all social. Follow me, I spread Kubernetes and Technology with JOY 😁 - https://bento.me/muthanagavamsi