Kairos is an open-source, immutable Linux meta-distribution for running Kubernetes at the edge. It takes a Linux base distribution and turns it into a bootable system that is built, versioned and distributed as a container image. A node installs it once, runs it read-only, and upgrades by writing a new image beside the running one and rebooting. This addresses the usual problem of remote sites: machines that are patched by hand, drift apart, and have nobody nearby to repair a failed update. The project was formerly named c3os, was contributed with backing from Spectro Cloud, and was accepted into the CNCF Sandbox on April 13, 2024.
CNCF daily · Sprint 7, post 1 of 15 · Automation & Configuration
Nothing in this brief was installed or run. Commands and behaviour come from the project’s documentation, release pages and issue tracker, read on 6 December 2026.
At a glance
| Category | Provisioning › Automation & Configuration |
| CNCF status | Sandbox. Accepted April 13, 2024 |
| Written in | Mainly Go |
| License | Apache-2.0 |
| Kubernetes | Bundled in the “standard” images (k3s or k0s); “core” images ship without it |
| Upgrades | A/B (active and passive) systems from an OCI image, plus a recovery system |
| Provisioning | ISO or USB, network boot with AuroraBoot, unattended install from cloud-config |
| Latest release | v4.7.0 (23 November) |
The problem Kairos solves
An edge fleet differs from a data centre. Hardware sits in shops, plants, vehicles or server cupboards, the network may be slow or absent, and the person on site is rarely a system administrator. A conventional distribution updated package by package ends up in a different state on every machine, and an interrupted update can leave a host unbootable.
Kairos treats the operating system as one artifact. The same image is tested, pushed to a registry and applied to every node. State that must survive lives on a persistent partition; the rest is replaced as a whole.
Key concepts
| Term | Meaning |
|---|---|
| Meta-distribution | Kairos is applied on top of a base Linux distribution rather than being one fixed distribution. Hadron is the project’s own base used in current examples. |
| Core and standard images | Core is the immutable OS alone; standard adds a Kubernetes distribution. |
| cloud-config | The YAML file that configures a node: users, SSH keys, install target, Kubernetes settings and files to write. |
| Active, passive, recovery | The running system, the previous one, and a separate rescue system. |
| AuroraBoot | The tool that builds installation media and serves network boot. |
| Trusted Boot | An installation mode with signed unified kernel images, started through systemd-boot. |
| Kairos Operator | A Kubernetes operator that runs node operations, including upgrades, from custom resources. |
Architecture
Open the zoomable diagram, or download it as SVG or PNG.
| Component | Responsibility |
|---|---|
| Image recipe | A Dockerfile that starts from a Kairos image and adds drivers, agents or settings. |
| OCI registry | Stores each operating system version, like any container image. |
| Kairos Operator | Creates the jobs that upgrade selected nodes. |
| AuroraBoot | Produces ISOs or serves the image over the network for first installation. |
| cloud-config | Declares how a node is installed and configured. |
| Kairos node | Boots the immutable system and applies the configuration. |
| k3s | The Kubernetes distribution included in k3s-based standard images. |
| Persistent data | Keeps cluster and application state across upgrades. |
Design principle. Change the operating system by replacing a tested image, never by editing a running host.
From a pushed image to a rebooted node
- A new operating system image is pushed to the registry and referenced in a
NodeOpUpgraderesource. - The operator creates an upgrade job for the selected nodes, limited by
concurrency. - The job writes the new system while the running one stays untouched.
- The node reboots into the new system.
- A successful boot clears the boot assessment and the node returns to the cluster. A failed boot falls back to the previous system.
Installation
The following follows the current documentation. It has not been tested for this brief.
1. Write a cloud-config. Replace the user, key source and disk.
#cloud-config
users:
- name: ops
groups:
- admin
ssh_authorized_keys:
- github:YOUR_GITHUB_USER
install:
device: /dev/sda
auto: true # required for unattended installation
reboot: true
k3s:
enabled: true
2a. Build an offline ISO with AuroraBoot. The result is written under build/iso/.
docker run --rm -ti \
-v "$PWD"/cloud-config.yaml:/cloud-config.yaml \
-v "$PWD"/build:/tmp/auroraboot \
quay.io/kairos/auroraboot:v4.7.0 \
--set container_image=quay.io/kairos/hadron:v0.6.3-standard-amd64-generic-v4.7.0-k3s-v1.37.2-k3s1 \
--set "disable_http_server=true" \
--set "disable_netboot=true" \
--cloud-config /cloud-config.yaml \
--set "state_dir=/tmp/auroraboot"
The documented ISO example uses a core image; the standard k3s image reference above is taken from the netboot and upgrade examples.
2b. Or network boot. The AuroraBoot host and targets must share a network segment, ports 67, 8080 and 8090 must be free, and the existing DHCP server must work with ProxyDHCP. The documentation states that netboot does not work through Docker on macOS and is not supported on Windows.
docker run --rm -ti --net host quay.io/kairos/auroraboot:v4.7.0 \
--set "container_image=quay.io/kairos/hadron:v0.6.3-standard-amd64-generic-v4.7.0-k3s-v1.37.2-k3s1" \
--cloud-config URL_OF_YOUR_CLOUD_CONFIG
3. Verify after the reboot: log in over SSH, then check systemctl status k3s and journalctl -u k3s.
4. Install the operator for upgrades from Kubernetes. The version below is the one shown on the development (“next”) documentation page; check the current one before use.
helm install kairos-operator \
oci://ghcr.io/kairos-io/helm-charts/kairos-operator \
--version 0.3.0 \
--namespace kairos-operator --create-namespace
Upgrading nodes
On one node:
sudo kairos-agent upgrade list-releases
sudo kairos-agent upgrade --source oci:quay.io/kairos/hadron:v0.6.3-standard-amd64-generic-v4.7.0-k3s-v1.37.2-k3s1
sudo reboot
For disconnected sites, ocifile: takes a saved image tar and dir: an extracted root filesystem. The recovery system is upgraded separately with --recovery, and the documentation advises doing so only when the active system is known to be good. On Trusted Boot installations, each custom boot entry is upgraded separately with --boot-entry.
Production reference design
- Keep image recipes in Git and build them in CI with pinned base, Kairos and k3s versions.
- Push to a private registry, sign the images, and keep at least the previous version available.
- Provision from a per-site cloud-config, using netboot in a staging room or a USB ISO on site.
- Run three server nodes where a site must survive the loss of one machine; a single node is acceptable only where reinstallation time is.
- Roll out upgrades in rings with the operator, one node at a time, stopping on failure.
apiVersion: operator.kairos.io/v1alpha1
kind: NodeOpUpgrade
metadata:
name: ring-0-upgrade
namespace: default
spec:
image: registry.example.com/edge/os:2026.12.1
nodeSelector:
matchLabels:
kairos.io/managed: "true"
concurrency: 1 # the default, 0, upgrades all nodes at once
stopOnFailure: true # the default is false
upgradeActive: true
upgradeRecovery: false
Typical uses are retail and branch clusters, factory gateways, edge inference boxes and bare-metal fleets without a management controller.
Security
- The immutable root reduces drift and casual tampering; it does not replace patching. Patching means building and rolling a new image.
- Trusted Boot checks signatures at start-up. The agent aborts an upgrade whose signing certificate is not enrolled, or is blacklisted, in firmware.
- Never keep the default or example passwords. Use SSH keys, and treat cloud-config files and any join tokens as secrets.
- Sign images and verify the registry path; whoever can push the referenced tag controls the fleet’s operating system.
- Release v4.4.0 added SELinux support for non-Trusted-Boot images and Go’s native FIPS 140-3 module. Confirm what each covers before relying on it for compliance.
Monitoring and day-2 operations
- Follow upgrades with
kubectl get nodeopupgradesandkubectl get jobs -A. - Check the running image version on every node after each ring; do not infer it from a completed job.
- Alert on Kubernetes and application health separately. Boot assessment does not see them.
- A manual fallback selection lasts for one boot. To stay on an older version, run a normal upgrade to that version.
- Read release notes before upgrading. v4.4.0 stopped treating
/usr/libexecas persistent and made failed persistent mounts halt the boot.
Building custom images
Because a Kairos system is a container image, hardware drivers and site agents are added with an ordinary Dockerfile based on a Kairos image, built in CI and pushed to the registry. Test the result by booting it in a virtual machine and by upgrading an existing node, since a successful container build does not show that the image boots.
How a node is laid out and how it boots
A Kairos machine is not one big root filesystem that gets modified over the years. The documentation describes a disk with several separate parts, each with one job: a state area that holds the operating system images (the active one and the passive one), a recovery area with a small rescue system, an OEM area that keeps the cloud-config the node was installed with, and a persistent area for data that has to survive upgrades. The running root is mounted read-only, with a thin writable layer on top that disappears at reboot. Directories that must keep their contents, such as the k3s data and the container image store, are bind-mounted from the persistent area.
This split explains most of the behaviour operators see. An upgrade writes a new image into the passive slot, so the active system is never touched while it is running. A reboot swaps the roles. If the new system fails to boot, the boot loader tries the previous one. The recovery system exists for the worse case, where both slots are damaged or an operator needs a clean shell to reinstall. Because the persistent area is separate, replacing the operating system does not erase the cluster state or the application data on the node.
Two consequences matter when planning disks. First, the image slots are sized at install time, so a site that expects larger images later needs headroom from the start. Second, anything an engineer installs by hand with a package manager on the running node is lost at the next reboot, which is the point of the design but surprises teams used to patching in place. Drivers, agents and certificates belong in the image or in the cloud-config.
A year of patching, compared
Consider a fleet of several hundred small clusters and three events in one year: a kernel security update, a Kubernetes minor version change, and a new site agent that must be installed everywhere.
With a conventional distribution, each event is a procedure. Someone runs package updates through configuration management, some hosts are unreachable that night, some fail halfway, and a few drift into states nobody has seen. The team keeps a list of exceptions, and the exceptions grow.
With Kairos, each event is a new image. The platform team changes the recipe, builds it in CI, boots it in a virtual machine, upgrades one test node, and pushes it to the registry. A small ring of sites receives it first through a NodeOpUpgrade, with concurrency set to one and stopOnFailure enabled. If the ring stays healthy for an agreed time, the next ring follows. The exceptions list is replaced by one question per site: which image version is it running? That question has a single, checkable answer, and answering it is the main operational gain.
The cost moves to the build side. The image pipeline becomes critical infrastructure: it needs pinned inputs, reproducible builds, signed outputs and a registry that stays available. A team that is not ready to own that pipeline should not adopt an immutable fleet.
Failure drills to run before rollout
An immutable system makes failures rarer, but it also makes them different. These drills are worth running on the real hardware, not only in virtual machines:
| Drill | What it proves | What to record |
|---|---|---|
| Install from ISO or netboot on a blank disk | The cloud-config, the disk selection and the first boot work together | Time to a Ready node, and whether the persistent area has the expected size |
| Upgrade one node, then reboot | The A/B swap works and the new image reports the right version | Version before and after, and the upgrade duration on the real link |
| Pull the power during an upgrade | The node returns to the previous system without hands on site | Which system booted, and whether k3s resumed |
| Push an image that fails to boot | Boot fallback works and the operator stops the ring | Whether stopOnFailure held the rest of the ring |
| Push an image that boots but breaks a workload | The gap this brief warns about: nothing rolls back automatically | How long it took the health gate or a person to notice |
| Cut the wide area link mid-pull | The node stays on the old image and the site keeps running | Whether the pull resumes, and whether a half-written slot is ever booted |
| Reinstall a node with the same cloud-config | Replacement of dead hardware is routine | Time from a spare box to a Ready node |
Keep the results. They become the evidence for the first rollout decision and the baseline for the next release.
Common mistakes
- Treating the operating system image as the whole release. The image carries the node. The application is a separate release with a separate rollback, and the two should be gated separately.
- Using a moving tag in the operator resource. A tag such as
latestmakes the fleet’s operating system depend on whoever pushed last. Use immutable version tags, and ideally digests. - Skipping the recovery system upgrade for years. Upgrade it, but only from a known-good active system, as the documentation advises.
- Forgetting that cloud-config can hold secrets. Join tokens and passwords written into it are stored on the OEM area. Keep the file out of public repositories and rotate tokens after provisioning.
- Planning for the registry’s average load. Upgrade traffic is bursty. A whole fleet that starts pulling at the same minute is a different problem from steady state, so stagger rings and cache close to the sites.
- Testing only on virtual machines. Disk, network card and firmware behaviour differ on real hardware, and several of the open issues in the table above are of that kind.
Frequently asked questions
Is Kairos a Linux distribution? It calls itself a meta-distribution. It takes a base distribution, such as the project’s own Hadron or other supported bases, and adds the immutable layout, the agent and the upgrade mechanism on top. You choose the base and the version.
Do I have to use Kubernetes with it? No. The core images carry the immutable operating system alone. The standard images add k3s, or k0s in some variants, for people who want a ready cluster on first boot.
Can I run it without internet at the site? Yes, within limits. The ISO can be built with the image inside it, and upgrades can come from a saved image tar or an extracted directory instead of a registry. The site still needs some way for new images to arrive, even if that is a USB stick.
How is this different from running k3s on a normal server? On a normal server, k3s is one more package on a mutable host. Under Kairos, the host is replaced as a unit and k3s is one of its versioned parts, so the node and the cluster software move together and can be rebuilt from the recipe.
Who should not use it? Teams with a handful of long-lived servers that are always reachable, hardware that needs a vendor kernel module the image cannot carry, or no capacity to maintain an image pipeline.
What would make me confident enough to roll it out? A successful run of every drill above on the real hardware, a registry plan for the busiest upgrade night, and one clear owner for the recipe repository.
Troubleshooting
Entries come from the project’s documentation and issue tracker. None was reproduced here. Issue states can change.
| Symptom | Cause or status | What to do |
|---|---|---|
| First boot of a raw disk stays in recovery with “state partition not found” (#6239) | New partitions disappear from the kernel before formatting. Open when read, with fixes in the yip library awaiting a Kairos bump | Check the issue for the release carrying the fix; test first boot on your disk type |
| Persistent filesystem stays small after the disk is grown (same issue) | The kernel re-read of the partition table is deferred and later boots skip the resize | Compare lsblk with df after first boot |
| k3s restarts in a loop on Raspberry Pi, with a tiny persistent filesystem (#1599, older releases) | No single confirmed cause; expansion and network at first boot were implicated | Ensure network on first boot, check journalctl -u k3s, expand with resize2fs |
| Netboot or installer stops in dracut with an iSCSI error (#2522, older releases, closed) | Root cause not reproduced; one reporter traced it to stale files in a reused AuroraBoot container | Recreate the container with a clean state directory |
| Fallback selection reports success but has no effect with an encrypted OEM partition on GRUB (#5273, cited by the documentation) | Documented limitation | Check grub2-editenv /run/initramfs/cos-state/grubenv list for next_entry=fallback; otherwise choose it in the GRUB menu |
| Upgraded node boots but the application or cluster is broken | Success is recorded early in boot, so no automatic rollback | Roll back manually; gate rings on workload health |
| Trusted Boot UKI ISO cannot be produced with the AuroraBoot artifact builder (#5495, title only read) | Reported as the plain ISO step failing and cleanup deleting the UKI ISO | Check the issue status for your version |
UKI install or upgrade picks the wrong ESP when two disks carry COS_GRUB (#5396, title only read) |
Reported as the last matching partition being chosen | Wipe old Kairos disks before installing, and check the issue |
Usage cases
- Branch and retail sites that need a small cluster which survives a bad upgrade without a technician.
- In the fictional ONE Cinemas design that Sprint 7 builds, each cinema runs its own k3s cluster on Kairos so that it keeps working when the wide area link is down. This is a design assumption and has not been built.
- Factory and lab hardware without a baseboard management controller.
- Regulated environments that want every host to match a reviewed, signed image.
Operational considerations
- Scaling: plan registry bandwidth; many sites pulling a full OS image at once is the main cost. The documentation has a bandwidth-optimised upgrade example.
- HA: A/B protects the operating system of one node, not the availability of a site.
- Security: decide early on Trusted Boot, since it changes installation, signing and upgrade steps.
- Sizing: reserve disk for active, passive, recovery and persistent partitions.
- Pitfall: treating a finished upgrade job as proof of a healthy site.
Adoption
The project’s adopters page lists CLASTIX (the kMetal bare-metal platform), DeEEP Network (a distributed edge hosting fleet), imec (edge test infrastructure) and Spectro Cloud (the Palette platform). Spectro Cloud is also the original sponsor and employs several maintainers.
Alternatives
| Solution | Model | Best suited to |
|---|---|---|
| Talos Linux | Minimal, API-managed Kubernetes OS | Teams that want no shell and one opinionated system |
| Flatcar Container Linux | Immutable container host with A/B updates | Container hosts where Kubernetes is installed separately |
| bootc | Bootable containers for image-based Linux | Teams standardising on image-mode Linux and their own provisioning |
| Conventional distribution with configuration management | Packages updated in place | Small fleets with good access and hardware that needs it |
Strengths and limitations
| Strengths | Limitations |
|---|---|
| OS versions built and shipped with container tooling | Sandbox maturity |
| Choice of base distribution | More combinations to test |
| A/B systems with boot fallback and recovery | No automatic rollback for workload failures |
| ISO, netboot and unattended install | Netboot needs the same segment and compatible DHCP |
| Upgrades driven from Kubernetes | Trusted Boot adds key management and differs in behaviour |
Project status and roadmap
v4.7.0 is the release shown as latest stable in the documentation. Its release page lists no security fixes, and includes fixes in the agent and system extensions, newer dependencies and AuroraBoot imported into the main repository. v4.3.0, in September, was the first release from the consolidated repository. A public roadmap is linked from the repository.
Recommendation
Trial. Kairos fits fleets where hosts must be identical and recoverable without hands on site. Prove first boot, upgrade, forced boot failure and power loss on the actual hardware before rollout, and add workload health gates, because boot fallback alone is not enough.
References: CNCF project page · Repository · v4.7.0 release · AuroraBoot · Manual upgrades · NodeOpUpgrade · Boot assessment · Single-node example · Adopters

