This series began with a simple thought experiment: what if we treated Kubernetes the way we treat the Linux kernel? What if, instead of wrestling vanilla Kubernetes into shape one component at a time, engineers could simply pick up a ready-made distribution? Everything that follows grew out of that question. A caveat up front: the code that comes with this series is a set of experiments, and I doubt anyone will rush to run it in production. But I believe ideas like this deserve to be argued over and examined from every angle. Conversations of this kind are how an industry moves forward, and how we get to see familiar things in a new, sometimes unexpected, light.
The engineering behind it is still fairly raw, and I would be genuinely glad if people who like the idea itself joined the project and helped turn it into something technically far more serious.
Why I am doing this
kuberoot is not my first experiment with what Kubernetes could be, and it is probably worth explaining where it came from, because from the outside the earlier experiments looked more like jokes.
First came Sheeternetes, a container orchestrator that keeps its state in a Google Sheets tab instead of etcd and runs its reconciliation loop in Apps Script instead of a conventional controller. We then load-tested it, wrote an operator for it, built a container registry that lives in spreadsheet cells, federated two clusters through a shared sheet, and in the end moved the entire kube-scheduler into a single spreadsheet formula. Then came Tatarnetes, a fork of Kubernetes, Talos and the Kubernetes Dashboard that speaks Tatar. And then paleocomputing, where we ran Kubernetes on Project Oberon, on top of RISC5, the processor Niklaus Wirth designed for his own operating system.
They looked like jokes, and they were meant to be fun, but for me each one was a way of finding the line where the Kubernetes contract ends and the implementation begins: what is essential to it, and what is an accident of one particular codebase. If an orchestrator keeps working after its datastore has been replaced with a spreadsheet and its scheduler with a formula, then the essence of Kubernetes is not etcd or the scheduler’s code, but the resource model and the reconciliation loop. kuberoot grew out of those experiments. This time the question was not how far you can stray from Kubernetes as we know it, but what you can build if you take it seriously as a kernel.
I also want to thank my colleagues at Ænix. Talking with them and watching them work is where the ideas in this article took shape.
How it all started
In the fall of 2023, at KubeCon in Chicago, Tim Hockin, one of the engineers who started Kubernetes, stood on stage and talked about how Kubernetes grows more complex with every release, and how that complexity is not free. Every feature that only one user needs becomes a weight that everyone else has to carry; the project’s own developers find it harder and harder to hold the whole thing in their heads, and the engineers who run it find it harder and harder to make sense of all its knobs. Hockin suggested treating complexity as a budget: the project has one, it can spend it, but it can only spend it once, and so it has to learn to say no to whatever would eat that budget without giving enough back.
The idea stuck with me, because it seemed to carry a corollary that nobody had said out loud. If the complexity that machine learning, network appliances or industrial controllers need does not fit into the budget of the project’s core, it still has to live somewhere, ideally somewhere it does not burden anyone else. The Linux world found that place long ago. The kernel stays a kernel, something few people know intimately, let alone work on directly, and everything specific moves into distributions. Nobody expects Linus Torvalds to personally look after routers, medical scanners and game consoles. In December 2024 I wrote about this in “The inevitable future of Kubernetes”, arguing that sooner or later Kubernetes would follow the path of the Linux kernel, and that specialized distributions would grow around it, each with its own build system, its own defaults and its own package manager.
To my surprise, the article got thoughtful responses, from people whose opinions I value a great deal. Mathew Duggan wrote a post called Kubernetes as a Distro, in which he agreed that the problem was real but disagreed with my diagnosis. “I understand the idea,” he wrote, “but I think the root cause of all of this is simply a lack of a meaningful package management system for Kubernetes.” Helm, in his words, “has done the best it can,” while Operators “are proving too complicated for normal people to write,” and what we need is “something between the very easy to use but easy to mess up Helm and the highly bespoke and complex to write Operator concept.” He listed eight things such a system should do, and I will come back to that list. And Tim Hockin, whose talk had prompted the article in the first place, joined the discussion on Reddit and wrote a reply that I have reread many times since.
I am a vocal proponent of treating Kubernetes as the “kernel” of an OS, but it’s hard to be dogmatic for a number of reasons.
People expect it to have in-the-box solutions to many problems, partly because it has had those in the past and partly because the world of kube is vastly different than that of Linux. The latter was originally aimed at hobbyists, which gave rise to many distributions. Kube is much more business focused. How many Linux distributions really cater to businesses? 2 or 3.
We, perhaps mistakenly, ship in-the-box solutions for things like networking (kube-proxy) and service discovery (DNS) and cluster lifecycle (kubeadm). Even the scheduler is more user-space than kernel.
We, again mistakenly, ship binary builds. The Linux kernel is built by distribution builders.
I don’t know that the kernel analogy works when it comes to things like compile time options. It makes sense for the kernel much more than for kube, I think. Perhaps the analog there is more like “use a simpler scheduler” than compile-flags.
Anyway, I will keep pressing for building new things ON kube rather than IN kube.
I would push back on the “2 or 3,” and I will come back to this reply point by point, because almost every point in it ended up becoming one of the decisions described below.
In the summer of 2025 Duggan returned to the subject in a new post, What would a Kubernetes 2.0 look like, and went further still. His wish list: “Ditch YAML for HCL”; “Allow etcd swap-out” for smaller clusters; go “Beyond Helm” with a native package manager he called KubePkg, “because if there’s one thing the Kubernetes ecosystem needs, it’s another abbreviated name with a ‘K’ in it”; and make IPv6 the default. The package manager in this project carries the same name.
In hindsight, the most interesting thing about that exchange is that Duggan and I were both right; we were simply looking at the same problem from opposite ends. A distribution without a package manager turns into yet another monolith that cannot be upgraded piece by piece, and a package manager without a distribution is a tool with nothing to assemble. Debian is three things at once: apt, the archive and the judgment about what goes into it. None of them survives without the others. Rather than keep debating it in comment threads, I decided to build what we had been talking about and see what survives once theory has to turn into code.
What came out of it
What came out is a project called kuberoot. It is a toolkit for building Kubernetes distributions, modeled on what Buildroot does for embedded Linux. You describe the distribution you want, and the toolkit turns that description into a bootable image with its own Linux kernel, its own init system and its own Kubernetes, ready to be installed on bare metal or in a virtual machine. Alongside it grew kubepkg, a package manager that succeeds our earlier cozypkg and was shaped in large part by Duggan’s list of requirements, together with an archive of packages for it. I consider this triangle of a builder, a package manager and a package archive to be the main result of the work; everything else follows from it.
To find out whether the idea survives contact with reality, I built eight distributions with the toolkit and deliberately made them as unlike one another as I could. There is an ordinary general-purpose cluster, a network router without a single container, a hypervisor that moves virtual machines between nodes while they run, a platform for language models with the GPU driver built in, a real-time node for industrial workloads, a gateway for industrial sensors, an external monitoring cluster, and a workstation that lives inside the cluster. Had the idea been wrong, it would have shown by the second or third distribution, because each new one would have demanded a rewrite of the foundation. That never happened. After the first two, each new distribution took about a day to get booting, because each time the only code to write was a profile and whatever was genuinely new, usually a single program on the node.
Below I will walk through how it all works, which decisions we made and why, how this differs from what the industry has today, and where I see the benefits and the risks. The article is long because it is meant as a map for the rest of the series, in which each major part will get its own article with live demonstrations.
The three parts of the project: the toolkit builds the image, the node brings up the cluster, kubepkg installs everything else
Why Kubernetes needs a kernel of its own
Here is how Kubernetes usually lands on a machine. First a general-purpose operating system is installed, then Kubernetes is installed on top, and from that moment the two systems lead parallel lives. The operating system is updated by its own package manager and configured over SSH or through a configuration management tool, while Kubernetes behaves as if there were nothing underneath it and never had been. While everything works, the arrangement is perfectly convenient, but things keep going wrong at the seam between the two. A storage kernel module fails to build against the new kernel that arrived with a routine security update. The GPU driver drifts out of step with the libraries inside a container. A kernel parameter that one program needs gets in the way of another. An OS update reboots a node at exactly the moment a database migration was finishing on it. And in moments like these it turns out that nobody owns the seam: the OS administrator considers it a Kubernetes problem, and Kubernetes simply does not know it exists.
On the left, the usual stack with a seam nobody owns; on the right, one image built from one profile
Talos Linux has already taken a very important step in the right direction and shown that an operating system for Kubernetes can be immutable, shell-less and managed through an API. We followed in its footsteps in many ways and learned a great deal from it. But Talos has its own API and its own tool for managing nodes, so the line between the node and the cluster is still there; it has just become neater and safer. I wanted to see what happens if that line disappears entirely, so that the node is managed through the same API as the cluster, with the same kubectl, the same RBAC and the same controllers.
There is a second reason, and to me it matters even more than the first. Once the kernel, the system services and Kubernetes are built together, in one build and from one description, you can do things that on ordinary Linux are either impossible or painful. You can build a Kubernetes with no containers at all, whose API serves purely as the control panel for a machine, as in our router. You can build a real-time kernel and line the kubelet’s reserved cores up with the ones the kernel keeps for the scheduler tick and housekeeping, so that it hands the remaining, isolated cores to pods exclusively. You can make the GPU driver part of the operating system, signed with the kernel’s own key, instead of installing it through a privileged container that compiles a kernel module right on the node. These are the things the project was really started for. Managing nodes through the cluster API turned out to be a happy side effect.
Inside the node
The image and the boot
Every kuberoot distribution is built into a single bootable image. It contains a Linux kernel built from source; kinit, a small init that runs as PID 1 in place of systemd; and an immutable squashfs root filesystem holding Kubernetes, containerd, the cluster datastore, our own programs and the bare minimum of system utilities those programs need. There is no shell, no package manager and no SSH. The kernel is built as an EFI stub and boots straight from UEFI firmware. On an installed disk, systemd-boot sits in front of it only to choose between the two system slots and to count boot attempts.
When a node boots, kinit mounts the system filesystems, reads its parameters from the kernel command line, brings up the network from those parameters or over DHCP, sets the kernel parameters that Kubernetes and the particular distribution need, and loads the kernel modules listed in the profile. Then it writes 1 to /proc/sys/kernel/modules_disabled, and until the next reboot no process on the node, not even one running as root, can load another module. And because the kernel enforces module signatures and trusts only a key generated for that one build, even before that point it accepts no module except its own. The signing key is ephemeral: it is created for a single build and then thrown away, so even we cannot sign a module for a kernel that has already shipped.
Next, kinit works out the node’s role. If the node is bringing up its own cluster, it generates the cluster’s certificate authority, certificates for every component, the service account signing key, and the kubelet and container runtime configuration. If it is joining someone else’s cluster, it takes everything it needs from a join ticket, which I will come to shortly. Then it starts the services listed in the distribution’s profile, each in its own cgroup, with dependencies such as “start the kubelet only once the API server answers,” with health tracking and with restarts for anything that falls over.
Node boot: from UEFI to the profile’s services
The node API
One of those services, kuberoot-node, serves a small node API, and this is the part I most wanted to build. It is built on k8s.io/apiserver, the same library as kube-apiserver itself, and is registered with the cluster through the API aggregation layer, the same mechanism metrics-server and other extensions use. To an administrator, the node becomes a set of ordinary Kubernetes resources in the node.kuberoot.dev group: you can read them, change them, watch them and control access to them with RBAC exactly as you would for pods or Services.
| Resource | What it does |
|---|---|
| osconfigs | the node’s operating system settings and what the node reports about itself |
| nodeservices | the services kinit runs, with their state, restarts and logs |
| disks | block devices |
| installations | installing the system to disk from boot media |
| bootentries | the two boot slots and which of them is booted |
| upgrades | writing a signed update into the inactive slot |
| memberships, jointickets | nodes joining a cluster |
| statebackups | backups of a control-plane node’s state |
Authorization works the way it does for any aggregated API: a request arrives through the cluster’s API server, which vouches for the user’s identity, and the node API asks the cluster with a SubjectAccessReview whether that user may do what they are asking. While there is no cluster yet, or while it is down, the node serves its API on its own, with its own certificate authority, so an administrator can repair a node whose cluster has died. On a control-plane node the API gathers resources from every node in the cluster and presents them under names of the form <node>.<name>, finding each node by the address in its Node object. That means you can see the kubelet service on the third node with a single command, without logging into it and without even knowing its address.
A request for a service on a worker node goes through the cluster API; when there is no cluster, the node API answers on its own
$ kubectl get nodeservices NAME STATE PID RESTARTS MEMORY CPU AGE containerd Running 202 0 104Mi 0s 2m7s kine Running 201 0 82Mi 2s 2m7s kube-apiserver Running 198 0 309Mi 7s 2m7s kube-controller-manager Running 282 0 135Mi 2s 2m2s kubelet Running 280 0 112Mi 1s 2m2s kuberoot-node Running 204 0 127Mi 1s 2m7s Distributions add their own resources to this API. The hypervisor adds volumes and virtual machines, the AI distribution adds model servers, the real-time distribution adds latency tests, and I will get to all of them below.
Upgrades and rollback
Upgrades work the way they do on modern phones and cars. Installing to disk creates a boot partition, two system partitions of a gigabyte each, and a state partition holding everything mutable: certificates, the cluster database, kubelet and containerd data, and the node’s settings. A new release, signed with the project’s key, arrives as an Upgrade resource carrying a URL and a hash. It is verified and written into the inactive slot, and the node reboots into it on probation, with a limited number of attempts. If the system comes up after the reboot and its services are running, the slot is marked good and becomes the default. If not, the node falls back to the previous release on its own, with no human involved, but only to a release that was itself once confirmed as good.
Disk layout and the upgrade path: a new release has to pass its trial first
$ kubectl get bootentries NAME RELEASE STATE TRIES LEFT BOOTED DEFAULT slot-a 0.5.0-rt.1 Good 0 false true slot-b 0.5.0-rt.2 Bad 0 true false This output was captured when a new release of the real-time distribution could not start the kubelet. The kubelet’s static memory manager had checkpointed the memory layout it saw under the previous kernel. The new kernel left slightly less memory usable, the checkpoint no longer matched, and the kubelet refused to start until someone deleted its state file by hand. The node declared the slot bad and rolled back by itself, and all that was left for me was to find the cause and teach kinit to delete the CPU and memory manager checkpoints at boot, when there are no containers yet and the checkpoints describe nothing.
Joining, backups and networking
A new node joins through the same API. On a control-plane node you create a join token, a familiar idea from kubeadm, k3s or Docker Swarm, except that ours is not a single string but a credential bundle, similar in spirit to a Talos machine config. A JoinTicket resource is issued for one specific node, expires within a day, and carries the cluster’s address, its certificate authority, a single-use bootstrap token for the kubelet and the certificate the cluster will use to trust the new node’s API. The ticket is handed to the new node as a Membership resource in that node’s own API. The node reconfigures itself for its new role and obtains its certificates, the kubelet registers with the cluster, and the kubelet’s serving certificate requests are approved automatically, but only for addresses outside the pod and Service networks, so that a node cannot obtain a certificate for an address it does not own.
The join ticket: what is inside and how a node joins the cluster
Backups of a control-plane node’s state are taken on a schedule or on demand through a StateBackup resource. A backup contains exactly what the installer carries over: the certificate authorities and certificates, the node’s identity, the kubelet’s certificates and a consistent snapshot of the cluster database. It is encrypted with age and shipped to object storage. When installing the system on a new machine, you can point it at a backup to restore from, and the cluster comes back with its old certificates and its old data, so the worker nodes do not even have to join again.
By default the pod network is built over VXLAN by the node service itself, without any external components, and when all nodes share one layer-2 segment, there is a direct routing mode with no encapsulation. If you need something more serious, the built-in network can be switched off and Cilium installed as a package; storage works the same way, with Piraeus installed as a package on top of DRBD, whose kernel module already sits in the image, signed.
Security above the node
The package manager can require that only images pinned by digest in a package may run in the packages’ namespaces, and the distributions do exactly that by default. For applications there are typed intents. A user describes an application with a high-level resource, and a controller expands it into a Deployment, a Service and the other primitives inside a sealed namespace where an admission policy lets only that controller change them; not even the cluster administrator can, short of removing the policy. This is our answer to Duggan’s proposal to replace YAML with a typed language: rather than change the language, we shrank what a person has to write by hand in the first place.
The datastore and conformance
By default the cluster state is kept not in etcd but in kine on top of SQLite, just as Duggan suggested for smaller clusters. For a single control-plane node this is noticeably lighter and simpler to operate, and for a highly available control plane we use etcd on three nodes. The choice is made once, when the cluster is created. The second and third control-plane nodes join with the same join ticket, only with the control-plane role: the node joins etcd as a learner, a member without a vote, catches up with the others and only then is promoted to a voting member. Along with the ticket it receives the cluster’s shared keys, including the service account signing key and the key that encrypts Secrets at rest; without the latter, as we found out in testing, a new API server could not read a single Secret. The etcd cluster has its own certificate authority, separate from the cluster’s. Worker nodes reach the API servers through a load balancer built into the node itself, with no virtual IP and no external load balancer, so the setup works on any network.
To test it, I cut the power to the node that was the etcd leader at that moment. Over four minutes of monitoring, the API, as the workers saw it through their load balancer, never stopped answering, and a service on a worker node never noticed a thing: leadership passed to a neighbor, and forty seconds after power came back, the node I had switched off rejoined on its own. A node that is gone for good can be replaced: it is removed from the etcd member list through the node API, and its successor joins as a new member. On such a cluster the database part of a backup is simply an etcd snapshot.
Along the way we learned something subtle about kine. The Kubernetes API server expects its datastore to compact history every five minutes, but kine compacts on its own schedule and by default always keeps the most recent thousand revisions, and a small, quiet cluster can take hours to accumulate a thousand changes. Old object versions lived for hours, and one of the conformance tests for paginated lists, which waits for the revision behind a continue token to be compacted away and expects the server to answer 410 Gone, kept timing out. The fix was a single parameter; finding the cause took half a day and several false leads.
A highly available control plane: three etcd nodes and a load balancer on every worker
Finally, the distributions that run pods pass the official Kubernetes conformance test suite. It is the same suite the CNCF certification program uses to check that a distribution really is Kubernetes and not merely something that looks like it. It consists of the tests in the project’s main repository that are marked as Conformance; they run against a live cluster and check the behavior of the API, the scheduler, networking, DNS, storage and everything else users are entitled to rely on. Results for certified distributions are published in the k8s-conformance repository, and the tests are run with tools such as Sonobuoy or hydrophone; we used hydrophone. On a fresh three-node cluster running Kubernetes 1.37, the AI distribution passed all 462 tests, and not in a stripped-down form but with everything on it: models, the agent and the GPU driver in the image. A highly available cluster with three etcd control-plane nodes passed all 462 as well. We have not submitted the results for CNCF certification yet. This mattered to me from day one: none of the rest means anything unless there is real Kubernetes under the hood rather than an imitation of it.
The node’s internals, from boot, upgrades and backups to the reasons it has no shell, will get a detailed article of their own.
How a distribution is put together
Describing a distribution
Now to the reason all of this was started. A kuberoot distribution is described by a single profile file and a small directory next to it, and I want to go through that description in some detail, because it is what answers the question of whether you can build your own Kubernetes for your own purpose without rewriting everything from scratch and without maintaining a fork of an operating system.
The profile lists which kernel modules to load at startup and with which parameters, which kernel parameters to set, which services to run on control-plane and worker nodes, with which arguments and in which order, what to add to the kubelet configuration, which resources to apply to the cluster on first start, and whether to install packages. Service arguments are written as templates into which kinit substitutes the node’s address, certificate paths and network settings, so the same profile works on any node. Here, for example, is how the AI distribution’s profile declares the NVIDIA driver modules and the service that manages the cluster’s models.
apiVersion: kuberoot.dev/v1alpha1 kind: Distribution metadata: name: ai spec: modules: - name: drbd params: usermode_helper=disabled - name: nvidia - name: nvidia_uvm roles: controlPlane: generators: [node, cluster, containers, kubelet] addons: true packages: true services: - name: kuberoot-aictl after: apiserver args: - /usr/bin/kuberoot-aictl - --kubeconfig={{kube "admin.kubeconfig"}} - --listen=:8000 The kubelet settings a distribution adds on top of the base ones are described in the profile too, and kinit will not let a profile override anything the node cannot live without, such as authentication and certificates. This is where the real-time distribution, for instance, turns on the static CPU and memory manager policies and reserves the first two cores for the system.
Next to the profile there may be a kernel configuration fragment, if the distribution needs its own kernel; a list of additional system programs to put into the image; a script that adds to the image what packages cannot provide, such as the NVIDIA driver or the hypervisor; and manifests to apply to the cluster at startup, for example the distribution’s own resource definitions and the RBAC rules for them.
The build
The build goes through several steps, and all of them are shared by every distribution. First the kernel is built from the base configuration plus the distribution’s fragment, if there is one, and each kernel variant is built in its own directory, so that the real-time distribution with its PREEMPT_RT kernel does not get in anyone else’s way. Then third-party modules are built against that kernel, such as DRBD for replicated disks or NVIDIA’s open GPU kernel modules, and signed with the key generated during the kernel build. Next come our own programs. Together with Kubernetes, containerd, the datastore, a minimal set of system utilities and the distribution’s additions, they go into the root filesystem, and the initramfs is built last. The finished system is packed into a signed update bundle, which nodes verify before installing, and into boot media for the first installation.
The versions of everything that comes from outside, from Kubernetes and containerd to the NVIDIA driver and the inference engine, are pinned in a single file, and everything built from source is built from pinned tags, so two builds of the same commit produce functionally identical systems (not bit-for-bit identical, since every kernel build gets a fresh signing key). Heavy builds, such as the kernel or the GPU build of the inference engine, run on a build machine rather than on a developer’s laptop.
What a distribution is built from: its own description plus the shared toolkit
Everything else comes for free. Installation to disk, upgrades with a trial period and rollback, backup and restore, nodes joining the cluster, node management through kubectl, the package manager and conformance testing are the same for every distribution, and the author of a new one does not have to think about any of them.
A new kind of object, in two places
If a distribution needs an object that Kubernetes does not have, say a virtual machine, a language model, an industrial sensor or a network interface, it is added in two places. On the node, a new resource appears in the node API, backed by an ordinary process that knows how to do whatever that object needs, whether that is running a hypervisor, serving a model, polling a sensor or programming routing tables. On the control plane, a controller appears together with its own CustomResourceDefinition; it decides which node should run what, hands each node its share through that node’s API, and collects their state back.
This is exactly the pattern Kubernetes has been extended with for years, just pushed one layer down, onto the machine itself, and that is why new distributions came together so quickly. Over time, the distributions began to share parts. The mechanism that puts changes on trial and rolls them back automatically, which first appeared in the router, was later moved into a shared package and is now used by the sensor gateway and the monitoring cluster as well. Likewise, the loop that reconciles each node resource independently, so that a long operation on one object cannot hold up the rest, is shared by virtual machines and model servers.
A detailed walkthrough of the builder, with an end-to-end example in which we build a small distribution from scratch step by step, will be a separate article.
The package manager, and Duggan’s list
Where it came from
The kubepkg package manager grew out of cozypkg, the packaging tool we built for the Cozystack platform when we moved it to a package-based architecture. In Cozystack it solved a very specific problem of that platform; for kuberoot it had to be reworked into a standalone project that runs on any Kubernetes cluster, not just ours, and plugs into a platform through configuration rather than forks. Along the way it gained capability-based dependency resolution, a dry-run plan of changes before anything is installed, signatures and per-repository trust, air-gapped installs, the ability to adopt components that are already installed, an image admission policy, SBOMs and vulnerability scanning, and much more, which I will cover in a separate article.
What a package is
A package in kubepkg is an ordinary, unmodified Helm chart plus a small descriptor next to it that says what the package provides and what it requires, what it conflicts with, which CRDs it owns, which permissions it needs in the cluster, whether it is safe to roll back to the previous version, and how to tell that each of its parts is healthy. This was a deliberate choice. There have been plenty of attempts to give Kubernetes its own package format, and they all foundered on the same fact: vendors already publish Helm charts and will not repackage them for the sake of a new standard. Finished packages remain ordinary charts in OCI registries, so they can be installed without kubepkg too, through Flux, Argo CD or Helm itself, and kubepkg can either install them on its own or hand them over to Flux or Argo CD.
From a recipe in the archive to a package in the cluster
A distribution in this model works the way a Linux distribution does: a base plus a meta-package that pins the versions of a tested set and pulls it in as a whole. When a node running a distribution brings up a cluster, kinit installs that distribution’s meta-package by itself, and from then on the user brings in whatever they need. For the AI distribution, for example, the archive has ready-made configurations for inference, for document search and for training, each of them a meta-package as well, and the archive currently holds more than forty packages, from networking and storage to job queues and vector databases.
Duggan’s eight points
Duggan and I agreed on a lot and disagreed on some things, and I think it is worth going through his eight points, because behind every disagreement is a decision we made deliberately.
Centralized State Management. Duggan asked for “a robust, centralized state store for all deployed resources, akin to a package database.” We concluded that Kubernetes already has such a store, its own API server, and that a second database next to it will inevitably drift away from the live objects, as already happens with Helm and its release secrets. So kubepkg keeps its state in its own cluster resources and derives everything else from the live objects.
Advanced Dependency Resolution. apt, pip and npm all have a mechanism that takes constraints such as “this package needs version 2.3 or later of some library” and works out a combination of versions that satisfies every package at once. The trouble is that a solver will happily produce a combination that is formally valid but has never run as a whole, and distributions do not work because of clever solving; they work because they ship sets that were tested together. So kubepkg resolves dependencies by capability, that is, by APIs, CRDs and named capabilities such as ingress, keeps version constraints to a minimum, and leaves exact versions to the distribution, which pins them in its meta-package.
Granular Resource Lifecycle Control. Here we agree completely, with one caveat. Ordering an installation only helps if every part of a package defines for itself what being healthy means, so health checks are part of the package rather than something bolted on later.
Secure Packaging Standards. Signatures, yes; a single “centralized trust system,” no. Trust in kubepkg is organized per repository, the way Debian archives work, each with its own keys; artifacts are signed with cosign from the Sigstore project, and repository metadata follows The Update Framework (TUF). On top of that, a cluster can require that only images pinned by digest in a package may run in the packages’ namespaces.
Native Support for Multi-Cluster Management. This we deliberately left out of scope. Managing fleets of clusters is already the job of Argo CD, Flux, OCM and Karmada, and kubepkg tries to do one thing well in one cluster and to be easy to drive from those tools.
Rollback Mechanisms. A snapshot of cluster objects does not roll back data: volumes, database schemas after a migration, CRDs after one of their versions has been removed. Even apt makes no promises about downgrades. So in kubepkg, rollback safety is declared as a property of each package version; only what is declared safe is rolled back automatically, and for everything else a backup is taken before the upgrade.
Declarative and Immutable Design. Agreed on the declarative part, less so on templates: a package is still a Helm chart, because that is what vendors ship. But the desired state lives in cluster resources, and the plan of changes can be computed in CI from the same resources that live in Git, before anything in the cluster changes.
Integration with Kubernetes APIs. Agreed, with one important addition the list does not mention. The hardest part here is CRDs. They are shared by the whole cluster, they outlive the release that installed them, and deleting a CRD deletes every object of that type, so CRD ownership is a concept of its own in a kubepkg package.
As for Kubernetes 2.0 as Duggan imagines it, we have covered part of that road too, though not always the way he proposed. The default datastore in our distributions is lightweight, as he suggested. Instead of replacing YAML with HCL, we shrank what has to be written by hand, using typed intents. There is a package manager, though it is not built into Kubernetes but lives next to it. What we do not have yet is IPv6 by default.
Back to Tim Hockin’s reply
Hockin had doubts about the Linux kernel analogy, and it is only fair to give them the same treatment as Duggan’s points, because in many ways working on kuberoot turned out to be a test of each of them.
Kubernetes is business-focused, and businesses need only a handful of distributions. That is hard to argue with if you think of general-purpose distributions; companies really do choose between two or three. But businesses consume an enormous number of specialized Linux distributions; they just do not call them that. Inside the firmware of a router, a storage array, a hypervisor, an industrial controller, a medical device, a television or a car there lives a Linux distribution built for one job, and almost none of their owners know what is inside. That class, not yet another Ubuntu, is what I had in mind, and that is why our distributions turned out to be a router, a hypervisor, a real-time controller and a gateway rather than three competing general-purpose clusters.
Too much ships in the box (kube-proxy, DNS, kubeadm), and even the scheduler is closer to user space. Here Hockin and I are in complete agreement, and kuberoot takes the thought all the way. Which Kubernetes components run is decided by the distribution’s profile. The router and the sensor gateway have no kubelet, no scheduler, no kube-proxy and no container runtime; the hypervisor keeps the kubelet only so that the cluster can see its nodes and notice when one fails, and runs no pods; DNS is installed as a package; and the cluster lifecycle lives entirely in kinit and the node API, so kubeadm is not needed at all. In our reading, then, the Kubernetes kernel is the API server, the datastore and the controllers, and everything else becomes a choice the distribution makes.
Kubernetes ships binary builds, while the Linux kernel is built by distribution builders. Here we have stopped halfway, for now. We build the Linux kernel ourselves, together with third-party modules and signing, but for Kubernetes itself we use the project’s upstream binary releases, pinned by version, because for our purposes building from source has not bought us anything yet. The architecture allows it, though, and if a distribution ever needs its own kubelet or its own API server, it will be able to build them the same way it builds the kernel today.
Compile-time options make less sense for Kubernetes than for the kernel, and the analog is more like “use a simpler scheduler.” This turned out to be exactly right. In kuberoot the role of compile-time options is played by the distribution profile, which decides which components run and with what settings, which datastore to use, and whether there should be pods at all. We really did not need compile flags, but the ability to drop a component or swap it for a simpler one was needed in every single distribution.
Build new things ON kube rather than IN kube. And this is perhaps the best description of what came out. Not one of kuberoot’s capabilities required changing Kubernetes. The node API plugs in through aggregation; virtual machines, models, sensors and routing rules are described by their own resources with their own controllers; packages are installed by an operator; and the agent-operator is c...













