K3s: lightweight Kubernetes for edge, IoT and dev

K3s (February 2019) by Rancher Labs (Darren Shepherd): certified Kubernetes distribution, single binary <100MB, reduced memory footprint. Optimised for edge, IoT, ARM, CI/CD, homelab. Donated to CNCF sandbox August 2020.

Open Source K3sRancher LabsKubernetesEdgeIoTCNCFOpen Source

Kubernetes too heavy for the edge

Upstream Kubernetes requires etcd, kube-apiserver, kube-controller-manager, kube-scheduler, kubelet, kube-proxy, CNI, CSI: GB of RAM, dozens of processes. For edge (IoT gateways, Raspberry Pi, retail branches), dev environments or CI/CD, it’s excessive.

The release

K3s is published in February 2019 by Rancher Labs. Lead: Darren Shepherd (Rancher cofounder). Goal: Kubernetes single binary < 100 MB, < 512 MB RAM for basic installation, native ARM support.

The name is a play on “K8s / 2 = K3s” (half the components). Apache 2.0 licence. Donated to CNCF as sandbox project on 19 August 2020 — it is the only Kubernetes distribution directly hosted by the foundation.

What changes vs upstream

  • Single binary — all components in one k3s exe
  • SQLite by default instead of etcd (also supports MySQL, PostgreSQL, etcd)
  • Containerd direct instead of Docker
  • Flannel CNI by default (replaceable)
  • Traefik default Ingress
  • ServiceLB (Klipper-lb) bare-metal LoadBalancer
  • local-path-provisioner CSI for local volumes
  • CoreDNS included

curl -sfL https://get.k3s.io | sh - → working K8s cluster.

Use cases

  • Edge computing — retail, factory, transport, telemedicine
  • IoT gateways — Raspberry Pi, industrial ARM
  • CI/CD — ephemeral clusters for integration tests
  • Homelab — self-hosting developers
  • Local dev environment (alternative to KinD/Minikube)
  • Small production — SMEs with lightweight K8s requirements

Rancher ecosystem

  • Rancher — multi-cluster management UI (includes K3s)
  • RKE2 — hardened K8s for governments/enterprise (similar to K3s but FedRAMP compliant)
  • K3d — K3s inside Docker for dev
  • K3sup — installer
  • Longhorn — distributed storage for K8s (Rancher)

Competitors

  • MicroK8s (Canonical, Ubuntu) — snap-based
  • KinD (Kubernetes in Docker) — CI/dev
  • Minikube — single-node dev
  • K0s (Mirantis) — similar philosophy to K3s

In the Italian context

K3s is used in:

  • Italian industrial IoT — 4.0 factories with edge compute
  • Retail — POS and store-level compute
  • Transport — infrastructure on trains/buses
  • Telemedicine — edge gateways for territorial hospitals
  • MSPs — small managed K8s for SMEs
  • Developers — local dev environments with Docker/Podman
  • PA — pilots on regional edge computing

The SUSE → Rancher Labs acquisition (July 2020) strengthens K3s enterprise strategy in Europe.


References: K3s (February 2019). Rancher Labs (SUSE since 2020). Darren Shepherd. Apache 2.0 licence. Single binary < 100 MB. CNCF sandbox (19 August 2020). SQLite default backend. Native ARM support.

Need support? Under attack? Service Status
Need support? Under attack? Service Status