The Simple, Solid & Certified Kubernetes Distribution
open sourceApache-2.0self-hostablefree
k0s is an all-inclusive, CNCF-certified Kubernetes distribution packaged as a single binary with no host dependencies beyond the Linux kernel, for bare metal, on-premises, edge, IoT and cloud machines. The same binary runs a controller or a worker, with the control plane isolated from workloads by default, containerd as the runtime, kube-router or Calico networking, and etcd, SQLite, MySQL or PostgreSQL as the datastore. Its companion CLI k0sctl installs, joins and upgrades whole clusters over SSH from one YAML file, while Autopilot upgrades nodes from inside the cluster, and Helm charts and manifest bundles can be declared in the cluster config. Mirantis started it and sells support for it; it's a CNCF Sandbox project under Apache-2.0.
Problems it solves
- install a conformant container cluster on any Linux box without installing packages or dependencies first
- turn a few bare-metal servers into a cluster with one config file and SSH access
- upgrade every node of my self-managed cluster with no downtime from my laptop
- keep the control plane off the machines that run my workloads
- run a cluster on small edge or IoT hardware with 1 GB of RAM per controller
- run a single-node cluster on SQLite and grow it to a multi-node cluster on etcd later
- keep cluster state in an external PostgreSQL or MySQL database
- back up and restore my cluster's control plane state
- install a cluster in an air-gapped data center with no internet access
- declare the Helm charts and manifests a new cluster should start with in its config file
- update cluster nodes automatically from inside the cluster in a controlled order
- run my cluster on ARM64, ARMv7 or x86-64 machines with the same tooling
- need a FIPS-validated container orchestration build for a regulated environment
- buy enterprise support with an SLA for our self-managed open source cluster
Features
- single binary with no external runtime dependencies besides the kernel
- certified, 100% upstream Kubernetes
- control plane isolation by default
- datastores: etcd (default for multi-node), SQLite (default for single node), MySQL and PostgreSQL
- containerd runtime; kube-router default CNI, Calico supported, or a custom CNI
- bundled CoreDNS and Metrics Server
- k0sctl: bootstraps, joins and upgrades clusters over SSH from a YAML file
- Autopilot: Plan-driven node updates, controllers before workers
- cluster backup and restore
- extensions for Helm charts and manifest bundles
View 6 more
- air-gapped installation
- x86-64, ARM64 and ARMv7 binaries; RISC-V without prebuilt binaries
- experimental Windows worker nodes (Windows Server 2019 and 2022)
- runs in Docker
- k0smotron Cluster API provider for running fleets of k0s clusters
- FIPS 140-2 builds and enterprise support from Mirantis under a commercial agreement
Limitations
- Doesn't run its control plane on Windows: Windows Server can only add worker nodes, and Windows support is experimental1
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
Alternatives
The same job
These do what k0s does.
- OKD The self-managing, auto-upgrading, Kubernetes distribution for everyone
- kubeadm Best-practice fast paths for creating Kubernetes clusters with kubeadm init and kubeadm join
- Kubespray Deploy a Production Ready Kubernetes Cluster
- MicroK8s Zero-ops, pure-upstream, HA Kubernetes, from developer workstations to production
- K3s Lightweight Kubernetes. Easy to install, half the memory, all in a binary of less than 100 MB.
- RKE2 Rancher's enterprise-ready next-generation Kubernetes distribution, focused on security and compliance
