Skip to content
lorebow
Build the cluster0 of 5 steps practised
wsl:~
# A practice Ubuntu shell in WSL. Docker is running; kind, kubectl and Helm aren't installed yet.
# Each mission above is a step on the right: press "Run in the lab" there, or type the commands here.
wsl:~$

Ubuntu in WSL

eth0 172.18.230.128/20

  • Docker Engine 29.2.1
  • kind
  • kubectl
  • helm
  • File-watch limits

No kind network yet. Step 3 creates one with a range of its own, clear of WSL's 172.18.230.128/20.

All labs

Build a local Kubernetes lab on Windows

Beginner 20 min Browser, then your machine

Before you start

What you’ll build

This lab builds a small Kubernetes cluster on your own Windows machine: one control planeThe node that runs Kubernetes' own components: the API server, the scheduler and the controllers. and three workersA node that runs your workloads: the pods of your apps., each a container inside WSLWindows Subsystem for Linux: a real Linux kernel running in a lightweight virtual machine on Windows.. It costs nothing, needs no spare hardware, and stays off until you start it.

The cluster sits on its own Docker network, which behaves like a small office network (a LANLocal area network: the machines on the same switch, which can reach each other directly.). That matters for tools such as MetalLB that answer for addresses on the LAN: your WSL shell is on the same network, so you see what a laptop on a real office network would see.

How to work through it. Each step shows its commands, what each one does, and what the real run printed. Press Run in the lab on a command to try it in the practice terminal first, where the drawing under the terminal shows what it built. Then run the same command in your own Ubuntu terminal and check your output against the step's.

What you need:

  • WSL 2 with Ubuntu. In PowerShell, wsl -l -v lists Ubuntu with VERSION 2.
  • Docker Engine running inside Ubuntu. Step 1 checks it.
  • About 4 GB of free memory for the four nodes, and 2 GB of disk for the node image.

Tested with

Windows
11
WSL
2.5.10
Ubuntu
24.04
Docker Engine
29.2.1
kind
0.33.0
Kubernetes
1.37.0
kubectl
1.37.3
Helm
4.3.2