Set up your lab
Install Kubernetes locally
Most courses need a cluster to practise on. This page shows which option fits which purpose, which course uses which, and how to start it – with commands we ran ourselves.
Which option fits?
You have Docker
Use kind or k3d. A cluster is up in under a minute and gone again with one command.
You want a GUI
Docker Desktop, Rancher Desktop or OrbStack turn Kubernetes on with a click.
You want to learn to run Kubernetes
Use k3s, RKE2 or kubeadm in real VMs – just like in the admin courses. Create lab VMs
Comparison
| Fix | Runs in | Good for | License | Used in these courses |
|---|---|---|---|---|
| kind | Docker | labs, multiple nodes, CI | Apache 2.0 | Kubernetes, Kyverno & NetworkPolicies, OpenBao secrets, Gateway API, LLM platforms |
| k3d | Docker | fast, lightweight clusters (k3s in containers) | MIT | – |
| minikube | Docker or VM | getting started, dashboard, add-ons | Apache 2.0 | – |
| Lima | VM (macOS, Linux) | k3s or kubeadm from a ready-made template in a VM | Apache 2.0 | – |
| k3s | Linux (VM) | a lean cluster on one VM | Apache 2.0 | GitOps with Argo CD, Flux, Helm Charts, SOPS for Kubernetes, OpenTofu |
| RKE2 | Linux (VMs) | clusters like in a company | Apache 2.0 | Debugging Kubernetes, Kubernetes attack and defense |
| kubeadm | Linux (VMs) | exam prep, Kubernetes from the ground up | Apache 2.0 | CKA, CKAD, CKS, Kubernetes day 2 |
| k0s | Linux (VMs) | a single binary, clusters via k0sctl | – | k0s and LINSTOR |
| MicroK8s | Linux (Snap) | Linux with add-ons | Apache 2.0 | – |
| Docker Desktop | macOS, Windows, Linux | Kubernetes with a switch | paid from 250 employees or USD 10 million revenue | – |
| Rancher Desktop | macOS, Windows, Linux | Kubernetes with a GUI | Apache 2.0 | – |
| OrbStack | macOS | Mac, especially Apple Silicon | free for personal use, paid for business use | – |
Licenses as stated by the projects or the vendors' pricing pages, as of November 2026.
Install kubectl
You need kubectl for every option. On a Mac use Homebrew, on Linux do this:
# Linux – amd64 oder arm64, die Architektur ermittelt dpkg ARCH=$(dpkg --print-architecture) curl -fsSLO "https://dl.k8s.io/release/$(curl -fsSL https://dl.k8s.io/release/stable.txt)/bin/linux/$ARCH/kubectl" chmod +x kubectl ./kubectl version --client Client Version: v1.37.2 Kustomize Version: v5.8.1 # macOS brew install kubectl
Then put it on your path for good with sudo install -m 0755 kubectl /usr/local/bin/kubectl.
With Docker: tested by us
Run on 23 Nov 2026 on Ubuntu 24.04 (x86_64) with Docker 29.10. The output is real. On a Mac you install the tools with Homebrew; the commands afterwards are the same.
kind
ARCH=$(dpkg --print-architecture) curl -fsSLo kind https://kind.sigs.k8s.io/dl/v0.33.0/kind-linux-$ARCH chmod +x kind ./kind version kind v0.33.0 go1.26.7 linux/amd64 ./kind create cluster --name lokal-test kubectl wait --for=condition=Ready nodes --all --timeout=180s node/lokal-test-control-plane condition met kubectl get nodes NAME STATUS ROLES AGE VERSION lokal-test-control-plane Ready control-plane 28s v1.37.0 ./kind delete cluster --name lokal-test
Right after the start the node is NotReady for a moment until the pod network runs; kubectl wait waits for that. kind switches your kubectl context to the new cluster and removes it again on cleanup – afterwards no context is active.
k3d
curl -fsSLo k3d https://github.com/k3d-io/k3d/releases/latest/download/k3d-linux-$ARCH chmod +x k3d ./k3d version k3d version v5.9.0 k3s version v1.35.5-k3s1 (default) ./k3d cluster create lokal-test kubectl get nodes NAME STATUS ROLES AGE VERSION k3d-lokal-test-server-0 Ready control-plane 10s v1.35.5+k3s1 ./k3d cluster delete lokal-test
By default k3d ships an older Kubernetes version than kind. Pick another one with --image rancher/k3s:<version>.
minikube
curl -fsSLo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-$ARCH chmod +x minikube ./minikube version minikube version: v1.39.0 ./minikube start -p lokal-test --driver=docker kubectl wait --for=condition=Ready nodes --all --timeout=180s node/lokal-test condition met kubectl get nodes NAME STATUS ROLES AGE VERSION lokal-test Ready control-plane 37s v1.37.0 ./minikube delete -p lokal-test
With Lima: k3s or kubeadm from a template
Lima starts a Linux VM and ships ready-made templates: template:k3s installs k3s, template:k8s builds a cluster with kubeadm. Run on 23 Nov 2026 with Lima 2.3.0 on Ubuntu 24.04 (x86_64, QEMU with KVM) – the output is real. On a Mac you install Lima with brew install lima; we have not tested that ourselves.
# Linux: Lima aus dem Release-Archiv, braucht QEMU und KVM V=2.3.0 mkdir -p ~/.local curl -fsSL "https://github.com/lima-vm/lima/releases/download/v$V/lima-$V-Linux-$(uname -m).tar.gz" | tar -xz -C ~/.local export PATH=~/.local/bin:$PATH limactl --version limactl version 2.3.0 # k3s limactl start --tty=false template:k3s limactl shell k3s kubectl get nodes NAME STATUS ROLES AGE VERSION lima-k3s Ready control-plane 2s v1.37.2+k3s1 limactl delete --force k3s # kubeadm limactl start --tty=false template:k8s export KUBECONFIG=$(limactl list k8s --format '{{.Dir}}/copied-from-guest/kubeconfig.yaml') kubectl get nodes NAME STATUS ROLES AGE VERSION lima-k8s Ready control-plane 80s v1.37.2 limactl delete --force k8s
Starting took us almost 4 minutes (k3s) and just over 7 minutes (kubeadm), because Lima first downloads an Ubuntu image. Each VM gets 4 CPUs and 4 GiB RAM by default. Lima copies the kubeconfig to the host, so kubectl there talks to the cluster directly. Multiple nodes work over the lima:user-v2 network – the comments in the k8s.yaml template show how.
In VMs: as in the courses
These distributions run directly on Linux. The complete, tested steps are in the course's Day 0 – here you get the core command and the link. How to create the VMs
k3s
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=v1.37.2+k3s1 \ sh -s - --disable traefik --disable servicelb
From Argo CD, Day 0 and Flux, Day 0.
RKE2
curl -sfL https://get.rke2.io | sudo INSTALL_RKE2_VERSION=v1.37.2+rke2r1 sh -
Server and two agents: Debugging Kubernetes, Day 0.
kubeadm
Packages from pkgs.k8s.io, containerd, then kubeadm init and join: CKA, Day 0 and Day 1.
k0s
Four VMs, cluster with k0sctl apply: k0s and LINSTOR, Day 1.
With a GUI: not tested by us
These apps have a graphical interface or run on the Mac only. We have not tried them ourselves – follow the official guide.
- Docker Desktop: Settings → Kubernetes → enable.
- Rancher Desktop: Kubernetes is active after installation; you choose the version in the preferences.
- OrbStack: Enable Kubernetes in the settings.
- MicroK8s: via Snap on Linux, in a VM on the Mac and on Windows.
No installation at all
For a first taste the browser is enough: Hands-on simulator · Linux in your browser. Or locally without a cluster: KubeDrill.