Skip to content

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?

Comparison

FixRuns inGood forLicenseUsed in these courses
kindDockerlabs, multiple nodes, CIApache 2.0Kubernetes, Kyverno & NetworkPolicies, OpenBao secrets, Gateway API, LLM platforms
k3dDockerfast, lightweight clusters (k3s in containers)MIT–
minikubeDocker or VMgetting started, dashboard, add-onsApache 2.0–
LimaVM (macOS, Linux)k3s or kubeadm from a ready-made template in a VMApache 2.0–
k3sLinux (VM)a lean cluster on one VMApache 2.0GitOps with Argo CD, Flux, Helm Charts, SOPS for Kubernetes, OpenTofu
RKE2Linux (VMs)clusters like in a companyApache 2.0Debugging Kubernetes, Kubernetes attack and defense
kubeadmLinux (VMs)exam prep, Kubernetes from the ground upApache 2.0CKA, CKAD, CKS, Kubernetes day 2
k0sLinux (VMs)a single binary, clusters via k0sctl–k0s and LINSTOR
MicroK8sLinux (Snap)Linux with add-onsApache 2.0–
Docker DesktopmacOS, Windows, LinuxKubernetes with a switchpaid from 250 employees or USD 10 million revenue–
Rancher DesktopmacOS, Windows, LinuxKubernetes with a GUIApache 2.0–
OrbStackmacOSMac, especially Apple Siliconfree 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.

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.

More