K3s vs k3d
K3s is a lightweight Kubernetes distribution that runs as a process on Linux; k3d is a community tool that runs K3s inside Docker containers. How each one works, what k3d adds, how they measured against kind and minikube, and which to use when.
Diagrams in this video · 2Free in archhy
The diagrams, full size
Copy any of them into archhy, free, and change it for your own system.
After this lesson you can
- Explain how K3s on Linux machines and K3s in k3d each make a cluster
- Compare them on nodes, platforms, upgrades, release pace and measured start time and memory
- Choose K3s, k3d or both for a given job
Transcript
K3s vs k3d
G'day. Space Llama here, with Head to Head, where two tools meet and you decide. Today, K3s versus k3d. The names are one letter apart, and often mixed up. Here's the twist: they aren't rivals. k3d runs K3s.
A distribution, and a tool that runs it
K3s is a full Kubernetes distribution, packaged small: one binary of less than a hundred megabytes. It's certified Kubernetes, and a project of the CNCF, the Cloud Native Computing Foundation, at Sandbox level since twenty twenty. The name is a joke on K8s. Half as big, so five letters instead of ten. k3d is a separate community tool, in its own words not an official Rancher product. It runs that same K3s in Docker.
The same K3s, run two ways
Look at where K3s runs. On the left, one curl command installs it as a service on a Linux machine. Machine one runs k3s server: the control plane and the datastore. kubectl talks to its API on port sixty-four forty-three. Machine two runs k3s agent, with the kubelet and containerd, and joins with a URL and a token. On the right, K3s through k3d. k3d cluster create starts the Rancher K3s image as Docker containers, one per node. A k3d proxy container, an Nginx load balancer, sits in front, and kubectl reaches the API through it. Same distribution either way. What changes is what a node is: a whole Linux machine, or a container.
No, K3s doesn't build virtual machines
A myth to clear up. Some pages say K3s builds clusters from virtual machines, while k3d uses Docker. That's wrong. K3s's docs say its only requirements are a modern kernel and cgroup mounts. It runs as a process. You can install it in a VM, but it doesn't create one. On a Mac, k3d's containers run in the Linux VM that Docker Desktop, OrbStack or Colima already provides. That VM is your Docker engine's.
What one K3s binary bundles
Inside the one binary, the control plane runs as one process: API server, scheduler and controller manager, with a Helm controller alongside. The datastore is SQLite by default, through Kine. For high availability, embedded etcd. It brings containerd and Flannel networking, plus add-ons such as CoreDNS, Traefik for ingress, local-path storage and metrics-server. ServiceLB makes LoadBalancer Services work without a cloud provider. On upstream Kubernetes, they sit at Pending. The add-ons can be switched off, and the rest swapped out. Running many parts in one process is where the memory saving comes from.
What k3d adds on top
What does k3d add? Multi-node clusters in containers. Ask for three servers, and the first starts embedded etcd while the others join it. A load balancer container in front, so you can map a port on your machine, say eighty eighty-one, to Traefik. On request, a registry container wired into containerd. And k3d image import loads an image you just built with Docker straight into the cluster. It needs Docker. Podman works too, but k3d calls that experimental.
The catches
Now the catches. Each k3d release carries a default K3s version, chosen when k3d was built. It doesn't move after that. On our Mac, k3d five point nine made K3s one point three five. When we checked in November, K3s was at one point three seven. Pass the image flag to choose. Releases are slow. k3d five point nine, in June, is its only release in twenty twenty-six, about fifteen months after the last. K3s ships patches roughly monthly. And restarting a multi-server k3d cluster can fail, because the containers' IP addresses change.
Measured: one Mac, two nodes each
We timed them on one Mac Studio. A control plane and one compute node each, three runs, the middle result. k3d running today's K3s was Ready in about twenty-three seconds. kind took thirty-two, and minikube about fifty. With its default, older K3s, k3d took thirty-two seconds, the same as kind. The version made a big difference. At idle, k3d with everything bundled used the most memory, about nine hundred sixty mebibytes. Switch off Traefik, ServiceLB and metrics-server, which kind and minikube don't start, and it falls in line.
Side by side
Side by side, then. K3s is the distribution. k3d is a tool that runs it in Docker. Where does it run? K3s, on Linux. k3d, on macOS, Linux or Windows, wherever a Docker engine runs. Nodes: with K3s, each is a real machine, with its own kernel and network. With k3d, they're containers on one host. Upgrades: K3s upgrades in place, with release channels. With k3d, you recreate the cluster on a new version.
Which one when
So which one? Got Linux machines, and a cluster that should stay up? A homelab, an edge site, a Raspberry Pi, production? K3s. On a Mac or Windows laptop, or a CI runner, for continuous integration, and the cluster is throwaway? k3d. Want several nodes on one machine, even three servers for high availability? k3d. Production? k3d's nodes share one Docker host, a single point of failure. Install K3s on real machines.
How Gazeek uses both
A real example: us. Gazeek's hands-on Kubernetes labs use both. Clusters for building and testing the labs, and many student labs, run as containers with k3d, or with kind. Labs where a student joins a node, upgrades a cluster or breaks networking run on real Linux VMs, with K3s or kubeadm installed.
Recap
Recap. K3s is the Kubernetes distribution, a process on Linux. k3d runs that K3s in Docker containers. Linux machines and a cluster that stays up? K3s. Throwaway or multi-node clusters on a laptop or in CI? k3d. And with k3d, pass the image flag to get today's K3s.
Practice and what's next
The full comparison, with every measurement, is on gazeek.com. The link is in the description. Every diagram here opens in archhy, from the description too. That's Head to Head. Two tools went in, and it turns out one was carrying the other. See you next time.
Gazeek Flash · free
Exam questions on your phone
Free questions on Cluster architecture: quick-fire batches and timed exams, on the web or Android.






