talira

Lightweight Kubernetes. Easy to install, half the memory, all in a binary of less than 100 MB.

open sourceApache-2.0self-hostablefree

K3s is a CNCF-certified Kubernetes distribution packaged as a single binary of less than 100 MB, made for edge, IoT, CI and ARM machines as well as ordinary servers. One install script (curl -sfL https://get.k3s.io | sh -) sets up a node with the pieces a cluster needs already bundled: containerd, Flannel networking, CoreDNS, the Traefik ingress controller, the ServiceLB load balancer, a local-path storage provisioner and a network policy controller. It stores cluster state in SQLite by default, with embedded etcd for high availability or an external MySQL or Postgres database, and it deploys Helm charts and manifests placed in a folder on the server. Rancher, now part of SUSE, created it; it's a CNCF Sandbox project under Apache-2.0.

Ways to install

Package managers

Problems it solves

  • run a real container cluster on a Raspberry Pi or a small ARM board
  • set up a working single-node cluster in about a minute with one command
  • full container orchestration on edge devices and IoT gateways with very little memory
  • standard cluster setups need too many components and too much RAM for my small homelab servers
  • spin up a throwaway cluster in CI to test my manifests and charts
  • get ingress, load balancing, DNS and local storage working on a new cluster without installing each add-on
  • run a highly available control plane on three small servers without managing a separate etcd cluster
  • keep cluster state in my existing MySQL or Postgres database instead of etcd
  • back up my cluster's datastore to S3 on a schedule and restore it after a failure
  • install a cluster on machines that have no internet access
  • upgrade every node in my cluster to a new version automatically from a release channel
  • deploy Helm charts automatically by dropping a file on the server
  • pull container images through a mirror of my own registry, or share them between nodes
  • harden a lightweight cluster to meet the CIS benchmark
  • a cluster that's certified compatible with upstream so my workloads move to the cloud unchanged

Features

  • single binary of less than 100 MB; install script at get.k3s.io
  • bundled containerd (or cri-dockerd), Flannel CNI, CoreDNS, Traefik ingress, ServiceLB, kube-router network policy and local-path-provisioner
  • Spegel distributed registry mirror for sharing images between nodes
  • SQLite datastore by default; embedded etcd for high availability; external MySQL, Postgres or etcd
  • scheduled etcd snapshots (00:00 and 12:00 by default) replicated to S3-compatible storage
  • Helm controller with a HelmChart resource and auto-deployed manifests
  • automated upgrades with system-upgrade-controller Plans and release channels
  • air-gapped installation and private registry configuration
  • x86_64, armhf and arm64 binaries and multi-arch images
  • minimum 2 cores and 2 GB RAM for a server, 1 core and 512 MB for an agent
View 2 more
  • CIS hardening guide
  • runs in Docker as well as on Linux hosts

Limitations

  • Doesn't run natively on Windows: K3s servers and agents run on Linux23

Capabilities

Has an APIplan not known
Has a command line toolplan not known

Alternatives

The same job

These do what K3s does.

  1. MicroK8s Zero-ops, pure-upstream, HA Kubernetes, from developer workstations to production
  2. Nomad Manage containers, binaries, and VMs efficiently in the cloud, on-premises, and across edge environments.
  3. kubeadm Best-practice fast paths for creating Kubernetes clusters with kubeadm init and kubeadm join
  4. k0s The Simple, Solid & Certified Kubernetes Distribution
  5. Amazon EKS Managed Kubernetes on AWS
  6. Google Kubernetes Engine Kubernetes, evolved: The foundation for platform builders

Compare K3s with the top 3