For a long time I’ve wanted to write a manifesto about how the container layer now holds Kubernetes back more than it helps it spread. What was once its headline feature looks to me like dead weight today. Kubernetes has a great API and a great control plane, and that’s its real superpower. Everything container-related sitting in the core of the orchestrator, though, limits it badly. It ties Kubernetes too tightly to Linux and its ecosystem. It gets in the way of positioning Kubernetes as a general-purpose orchestrator, because many engineers see it as a container orchestrator and nothing more. And it makes the more interesting, unusual use cases harder. Yes, plenty of projects already use the power of the API and stay away from containers, but the container legacy usually lives on in them anyway, simply because you can’t separate that layer from the core.
My view is simple: for Kubernetes to make its next leap, it has to throw the entire container layer out of its core. A couple of days ago I sat down to write that manifesto, and as soon as I started, I found that on 2 December an old KEP from 2023 had been reopened — the very KEP that lets you build Kubernetes without the container layer. It also fits where the Kubernetes core has been heading for years. dockershim is already gone (since 1.24), so is the code for the AWS, Azure, GCP, OpenStack and vSphere cloud providers (by 1.31, in what the maintainers called the largest migration in Kubernetes history), and volume drivers are moving out to CSI. It all lines up with the complexity budget Tim Hockin proposed at KubeCon NA 2023: complexity is a finite resource, so whatever the core doesn’t need should leave it.
In this article we’ll look at how KEP-4080 lets Kubernetes keep everything that’s best about it while dropping the container layer. By “best” I mean the declarative API, the reconciliation loop, RBAC, namespaces, CRDs and controllers, which manage virtual machines, cloud resources, network devices and even systems without a single container equally well. I’ll also show with working examples why the tie to containers gets in the way, how the Kubernetes community spent ten years getting to the point of breaking it in KEP-4080, and what you get if you follow that path all the way.
And of course there’s a distribution built on this KEP. I put together a cluster of very different operating systems — all the way to the BSD family, the descendant of Solaris, Android and Plan 9 — and checked how this clean Kubernetes API can manage even everyday apps like Google Chrome, down to live-migrating a browser with its open tabs.
Here’s all of it in one recording from our test bench: the core without pods, the container modules being installed, machines on ten systems, one Deployment across seven of them, exec into a FreeBSD jail and an illumos zone, a container with its data and Chrome with its tabs moving between machines, and the module being removed while workloads keep running.
Containers in the core tie Kubernetes to Linux
Let’s start with where the container layer lives in Kubernetes today. The Pod object, a group of containers sharing a network and volumes, lives in the core/v1 API group — the same group that defines Namespace, Secret and ConfigMap. The kubelet is built almost entirely around pods. The scheduler thinks in nodes and pods, and the Kubernetes network model, with an address per pod and Services as virtual addresses backed by rules on every node, grew out of containers too. Inside kube-apiserver there’s no way to pull the generic API machinery apart from the container types: one process and one group serve both.
In the Kubernetes API, “container” means a very specific set of Linux kernel features: namespaces, control groups (cgroups), seccomp system call filters, and the SELinux and AppArmor security modules. Pod fields describe those features, and Windows shows it best. Windows Server nodes arrived in Kubernetes 1.14 in 2019, and they run natively, without VMs and without WSL. But supporting one more OS meant adding the spec.os field to the pod schema, a separate windowsOptions block and a separate kind of privileged container, HostProcess. The pod validation code also gained a function that forbids twelve fields on Windows: the seccomp and AppArmor profiles, SELinux options, fsGroup, runAsUser, runAsGroup, supplemental groups, sysctls, hostPID, hostUsers and two more fields related to SELinux and groups. All of them describe Linux features and simply mean nothing on another OS. In other words, all of that had to be wedged into the core.
One line from the same validation file, pkg/apis/core/validation/validation.go, says even more:
var validOS = sets.New(core.Linux, core.Windows) spec.os.name accepts exactly two values, and the standard pod API knows no other operating systems. There’s no way to describe a pod for FreeBSD, illumos or macOS in it. The Kubernetes control plane still runs only on Linux, and a regular Linux container — which is what most containers are — runs on macOS, FreeBSD or Windows only inside a VM with a Linux kernel. That’s how Docker Desktop, Podman Machine and Apple container all work.
Here’s what a stock kube-apiserver says when you ask it for a FreeBSD pod, and then for a Windows pod with fields that describe Linux features:
That’s the main argument of this article. By building containers into its core, Kubernetes tied itself to one kind of workload, and through it to one operating system. Every new OS becomes an exception sewn into the pod schema by hand, and in seven years that’s happened only once, for Windows. Take containers out of the core and the tie goes away: the core describes what should run, and a workload module on each OS decides how to run it and which kinds of workload to support at all.
How the idea behind KEP-4080 was born and how it evolved
The history matters in its own right: over ten years the motivation changed several times, and not once did it sound like “let’s just get these damn containers out of the core.”
It all started with extensibility. In 2016–2017 the maintainers pulled the machinery of kube-apiserver into a separate library, k8s.io/apiserver, so other API servers could be built the same way Kubernetes itself is. kube-aggregator and Service Catalog were the first to use it. Around the same time Kubernetes gained the API Aggregation Layer and CRDs, which let you add new resource types to a cluster without waiting for them to land in the main Kubernetes codebase. In 2018 Brian Grant wrote in the architecture document “Kubernetes Resource Model” that Kubernetes isn’t just managed through an API but built around one, and that the approach works for managing anything, not only containers. Still, nobody proposed removing pods back then.
In 2019 the maintainers started phasing out hyperkube, a single binary bundling every Kubernetes component, and stopped shipping it in 1.19 (kubernetes#88676). Most people ran the components as separate programs anyway, and hyperkube was getting in the way of moving the cloud provider code out of the core. Ever since, the maintainers have been wary of anything all-in-one.
Kubernetes without containers was first proposed in public in May 2021. In a short KubeCon EU talk, “Kubernetes as the Control Plane for the Hybrid Cloud,” Clayton Coleman of Red Hat asked what the Kubernetes API would look like without pods, containers and nodes, and showed kcp, a prototype built on a fork of Kubernetes. kcp had three goals. The first was a control plane with no container types. The second was workspaces: each one looks to its user like a separate cluster with its own API and CRDs, yet costs the control plane about as much as an ordinary namespace, so every team or every customer of a platform can get one. The third was spreading workloads across many real clusters managed through a single API.
In June of the same year kcp was shown at a SIG Architecture meeting. People liked the idea that the Kubernetes API is valuable on its own, without containers, but advised against mixing all three goals at once. They suggested starting with an API server that serves only CRDs. Such a server tests kcp’s central bet — that the API is useful without the built-in container types — without dragging in workspaces and multi-cluster, so it can be discussed and accepted on its own. The same meeting surfaced the main technical obstacle: namespaces are defined in the same core API group as pods, so you can’t remove pods without touching namespaces. That’s the problem KEP-4080 would later set out to solve.
For the next two years kcp lived on its own fork, and with every new upstream Kubernetes release its developers had to carry their changes forward again. kcp couldn’t lean on the shared Kubernetes types either. In 2022 the ClusterName field was removed from object metadata (kubernetes#108717): Kubernetes itself never used it, but kcp relied on it to tell its workspaces apart. It became clear that what kcp needed wasn’t fields reserved for it in the built-in types, but a way to build its own API server from Kubernetes code without a fork. In summer 2023 Stefan Schimanski and Mike Spreitzer wrote that up as KEP-4080, “Generic Control Plane”. It was approved quickly and with almost no debate. David Eads only cautioned against bundling all the components into a single binary, remembering hyperkube, and the authors confirmed they had no plans to bring it back.
For kcp, the approval meant it could shrink its own changes in the Kubernetes fork and maybe, one day, drop the fork entirely. In September 2023 kcp joined the CNCF Sandbox, and its application listed the approved KEP-4080 as a step already taken toward its main goal: keeping its own changes to Kubernetes code to a minimum, and ideally needing no fork at all.
In 2024 Schimanski separated the generic control plane code from the container code in twelve consecutive PRs, and Kubernetes 1.31 shipped a sample API server without the container APIs, along with an integration test. By then the case for the KEP was being made differently than in 2021. Back then it was about the hybrid cloud — managing resources across several clouds and your own data centers from one place. Now it was about platform engineering: an internal team builds a self-service platform for the company’s developers, who request databases, environments and access through the platform’s own API, and for that kind of API a Kubernetes core without containers fits better than the full one. That’s the title of the KubeCon EU 2024 talk by Schimanski and colleagues: “Why Kubernetes Is Inappropriate for Platforms, and How to Make It Better”. Besides kcp, other projects already build their own control planes on this sample, such as Milo from Datum and multicluster-controlplane from Open Cluster Management.
After that the work stalled for a long time. The 2024 code worked, but nobody finished the separate repository, the docs or the formal completion of the KEP. In November 2026 a bot closed the issue as stale, and eleven days later it was reopened, because Schimanski and Sergiusz Urbaniak had come back to it. On 2 December 2026 Urbaniak opened a PR describing what the KEP should look like when it’s done: a separate k8s.io/generic-controlplane repository, about ten PRs, and completion by Kubernetes 1.41.
Over ten years the idea went from “let new APIs be added without waiting for the main Kubernetes code” through “manage the hybrid cloud without pods” to “shared code for everyone building a control plane on the Kubernetes API.” At no stage did the community set out to take containers out of Kubernetes itself, so it’s worth being clear about what KEP-4080 does and what it doesn’t.
KEP-4080 splits the source code of kube-apiserver in two. One part is generic: object storage, namespaces, RBAC, CRDs, audit, watch. The other is everything to do with containers: pods, nodes, services, volumes. After the split, anyone can build their own API server from the generic part with no container types at all, and that already works. But the Kubernetes people install in their clusters doesn’t change: kube-apiserver is still built from both parts, and pods, nodes and services are still built in, just as before. You can’t turn a regular cluster into one without pods, and you can’t add pods to a container-free server as a separate module, because Kubernetes has no mechanism for that.
In other words, KEP-4080 splits the code, not the API. That’s why the title says “will let you”: the first step is done, but you still can’t take containers out of regular Kubernetes.
What happens if you take the idea all the way
We checked on a test bench how far you can get if you take this idea all the way. The path runs from what Kubernetes already has today to a core whose containers live in a separate API server you plug in, and to packages that say for themselves whether they need containers. Every section below comes with code and a recording from the bench. All the code is open source under Apache 2.0: the core, the agent and the modules are in the tym83/uncontained repository, and the router, physis and the package manager are in the kuberoot-dev organization.
Generic control plane: a Kubernetes API server without pods
Along with KEP-4080, the Kubernetes repository gained a sample of such a build, called the generic control plane. It’s a regular Kubernetes API server built only from the generic part of the source code, without the code that serves containers. There are no pods, nodes or services, and everything else is there: namespaces, secrets, ConfigMaps, service accounts, RBAC, events, Lease objects, CRDs, the API Aggregation Layer, audit and watch. Plain kubectl works against it, and controllers connect to it the same way they connect to any cluster.
We built our own server, uncontained, on this sample, with an embedded etcd and three resource types of our own: Machine, Program and Run (more on them below). The easiest way to see the difference is kubectl api-resources, which lists every resource type the API server knows. On a regular cluster that list has dozens of types, including pods, nodes and services. Here’s what it prints on our server:
Six types are left in the core v1 group: configmaps, events, namespaces, resourcequotas, secrets and serviceaccounts. Pods, nodes and services aren’t on the list, and you can’t create them on this server. The base isn’t ours, either — it’s the sample from the Kubernetes repository with only our own types added, so anyone can build the same server.
Replacing kube-apiserver with the generic control plane
This server is already useful for more than demos. kuberoot is our Linux distribution where even the nodes are managed through the Kubernetes API. It has two builds that need no containers at all: a router, where the Kubernetes API is the control panel for network interfaces and routes, and the Edge industrial gateway, which manages devices. Both used to run a full kube-apiserver with all the container APIs, which nobody actually used. We moved both distributions to a server built from the KEP-4080 sample and removed the kubelet, containerd, runc and the CNI plugins from the system image along the way. In other words, we simplified both and finally cut out what they never needed.
| kuberoot router | Full kube-apiserver | KEP-4080 core |
|---|---|---|
| Resource types in the API | 80 | 39 |
| Time to ready | 2.28 s | 1.93 s |
| Memory at idle | 285 MB | 203 MB |
| Goroutines | 2586 | 1361 |
| Compressed system image | 316 MB | 233 MB |
On a VM with two cores and 2 GB of RAM, the router now uses 265 MB instead of 381 MB, and the gateway 215 MB instead of 291 MB. On a device with little memory that’s a real difference: the third of the memory we freed goes to routing instead of an API nobody calls.
The second example is physis, a Kubernetes without nodes whose scheduler places workloads by energy use, latency and carbon. Its control plane has moved to the KEP-4080 core too, and physis passes its own conformance suite on it just as it did on the full server. On the bench the physis API server now uses 210 MB at idle instead of 293 MB, and the physis distribution booted on a VM, all twenty agents that manage its compute resources connected, and it passed all 17 checks.
Machines on Linux, BSD, illumos, Plan 9, macOS, Windows and Android
This section and the ones after it run on our uncontained server: the generic control plane from the KEP-4080 sample, plus three resource types and a controller of our own. We didn’t change the KEP code itself — everything below is CRDs, a controller and an agent on top of it. The bench is a set of VMs in a Cozystack cluster at Hetzner, my laptop, and GitHub Actions runners.
With no containers, there’s no need for a kubelet either. Instead, every machine runs a small uncontained agent. The agent registers the computer in the API as a Machine object, checks in every few seconds (measuring latency as it goes), and runs workloads with the operating system’s own tools. A Machine isn’t the familiar Node: a Kubernetes node is a machine where the kubelet runs pods, while a Machine is any computer with the agent that can run something of its own — a plain process, a WebAssembly module or an installed app. The agent lists what a machine can do in its capabilities, such as exec, wasm or app:google-chrome@<version>.
The agent is written without client-go, the official Kubernetes client library, and for a reason: client-go doesn’t build for Plan 9, because one of its dependencies uses a system error type Plan 9 doesn’t have. The Kubernetes API is plain HTTP and JSON, so the Go standard library is all the agent needs. As a result it builds for fourteen platforms, from Linux and Windows to Plan 9 and WebAssembly in the browser.
Nine machines on eight operating systems ran in our cluster at the same time. Besides the familiar Linux, macOS and Windows, there were the BSDs and two less familiar systems: illumos, the open-source descendant of Sun’s Solaris (we used its OmniOS distribution), and Plan 9, the research OS from Bell Labs built by the creators of Unix (the 9front distribution).
| Machine | OS | Latency |
|---|---|---|
| VM at Hetzner | Debian 13 | 3 ms |
| VM at Hetzner | FreeBSD 15.0 | 6 ms |
| VM at Hetzner | OpenBSD 8.0 | 4 ms |
| VM at Hetzner | NetBSD 10.1 | 3 ms |
| VM at Hetzner | OmniOS (illumos) | 3 ms |
| VM at Hetzner | 9front (Plan 9) | 6 ms |
| Laptop behind a home router | macOS 26.4 | 215 ms |
| GitHub Actions runner | macOS 26.7 | 173 ms |
| GitHub Actions runner | Windows Server 2025 | 163 ms |
The slow links to the laptop and the runners don’t matter: the control plane runs on VMs at Hetzner, and the agent only needs an outbound HTTPS connection, so machines behind NAT join without opening any ports. The Windows and macOS runners join without stored secrets: the agent presents the OIDC token GitHub issues to the CI job, and the API server verifies it with standard Kubernetes authentication.
Android is a special case. On phones the agent ships as a regular app (APK). It runs continuously with a notification, so Android doesn’t kill it, keeps working when the phone drops into Doze, and joins the cluster by scanning a QR code. We test it in CI on an Android 14 emulator.
The API server is portable too: it builds for Linux, Windows, macOS and Android as is. The BSDs needed 22 changed lines in two libraries the server depends on: the Kubernetes code (pkg/securitycontext) had no CPU-counting function for them, and the go-systemd library was missing a constant for NetBSD. illumos needed another 60 lines, mostly because it has no SO_REUSEPORT socket option. Plan 9 needed the most, 712 lines across twelve modules. Most of that went into bbolt, the storage engine under etcd. bbolt doesn’t read its database with ordinary reads; it maps the file into memory with the mmap system call, so the file’s contents look like an ordinary region of memory. Plan 9 has no mmap. So on Plan 9, bbolt keeps a full copy of the database file in memory and updates it on every write to disk. And instead of file locking, which Plan 9 lacks too, the database is opened as an exclusive-use file (the DMEXCL flag), which only one process can open at a time.
That comes at a price. The whole database has to fit in RAM, so bbolt’s tests with databases of a gigabyte or more fail on Plan 9. If another process corrupts the database file behind bbolt’s back, the in-memory copy won’t notice. And not every 9front file system honors exclusive use: cwfs and gefs do, hjfs doesn’t, and there two processes can open the same database. With that in place, a Kubernetes control plane with an embedded etcd started on 9front, and kubectl on Linux created, read and deleted objects in it and watched for changes.
Each change is a separate patch, one per module and system. The BSD and illumos patches are small enough that we can even send them upstream to Kubernetes, etcd and bbolt.
Moving workloads between machines
Once machines share one API, workloads can move between them, the way pods move between nodes, only across operating systems. uncontained has two resource types for this. A Program describes a workload: what to run (an executable, a WebAssembly module, an image or an installed app), how many instances, and on which systems it’s allowed. A Run is one instance of that workload on a specific machine, much like a pod is to a Deployment. Our controller watches the machines, and if one stops checking in, it starts an instance of the workload on another suitable machine.
So a workload doesn’t start over after a move, it can save its state now and then, for example the number of the last step it finished. The agent stores this snapshot, a checkpoint of up to 64 KB, in the Run’s status in the API, and the agent on the new machine restores it before starting. The state travels with the object through the API, so the machines don’t need a shared disk.
The most exciting part here is WebAssembly, and there’s no browser involved. WebAssembly is portable bytecode: you compile a program to it once, and it’s tied to neither a CPU nor an OS. The agent embeds wazero, a WebAssembly runtime written in pure Go, so it runs wherever the agent itself builds, Plan 9 included. That means the same .wasm file runs unchanged on all nine machines, and moving it comes down to stopping it on one machine and starting it from its checkpoint on another.
On our bench such a workload counts primes and travels Plan 9 → Windows → macOS → illumos. On each machine it picks up counting from the number where it stopped on the previous one. Four operating systems, four kernels and one program that was never recompiled.
The second example tests a machine failure. We stopped the agent on the laptop; about a minute later the controller marked the laptop unavailable and started an instance of the workload on FreeBSD, which picked up counting from the last checkpoint.
Google Chrome as a workload in the cluster
If any computer can be a machine, then a workload doesn’t have to be a container or code written for a cluster either. It can be an app that’s already installed, for example Google Chrome. When Chrome is installed, the agent adds the app:google-chrome@<version> capability to the machine. The workload’s state is the list of open tabs: the agent reads it over the Chrome DevTools Protocol and saves it as a checkpoint. When the workload moves to another machine, the agent there opens the same tabs.
Chrome moved from a MacBook to a Windows machine and opened the same three tabs there.
Android was trickier, because on a phone the Chrome DevTools Protocol is open only to the shell user that adb runs as, and closed to regular apps. Since Android 11, a phone can connect over Wi-Fi to its own debugging service, so our app pairs with that service once. Our first attempt, launching a helper with shell rights through it, didn’t work: Android’s SELinux policy lets only the debugging daemon, adbd, connect to Chrome’s socket. So the agent asks adbd to open the connection to Chrome on its behalf, the same way adb forward does from a computer. With that, tabs move to the phone and back, and we get around Android’s sandbox using nothing but Android’s own tools.
Here’s how it looks on the macOS runner’s screen: the tabs before they left for the phone, and the same tabs after they came back.
Container images for different operating systems
So far the cluster has had no containers at all. Now let’s bring them back — not into the core but onto the machines. Being able to run containers becomes a machine capability, just like having Chrome installed.
Let’s start with the image. The OCI format has long let one image hold builds for several platforms: the registry stores an index in which each OS and architecture pair points to its own variant. Docker uses this for linux/amd64 and linux/arm64, but nothing in the format limits it to Linux. We built images that carry native builds for FreeBSD, OpenBSD, NetBSD, illumos, macOS, Windows and Plan 9 alongside the Linux one. At start, the agent picks the variant for its OS from the index and runs the container with the system’s own tools, without a VM. A workload can list the operating systems it’s allowed to run on, and our controller then picks a machine in this order: first one whose OS has a native build in the image, and if there’s none, a machine that can run the image’s WebAssembly variant.
On the 9front console you can see a container from the same image running on Plan 9 and answering a request:
That leaves the millions of existing images built only for Linux. For those we wrote a converter, unc convert: it takes a regular Linux image and adds variants for other operating systems to it. There are three ways to produce such a variant, and they differ in how much slower the container runs compared with a native build. The converter tries them in turn, from fastest to slowest.
- If the image holds a Go program, the converter reads the build info (module, version, flags) from the binary and rebuilds it from source for the target OS. The result is the same kind of native build, with no speed penalty.
- If the image holds Python or Node.js, the converter puts the target OS’s interpreter into the variant and takes the scripts from the image. Speed stays close to native as well.
- If the image holds a compiled C program, emulation is the only option left. For that the converter uses blink, an emulator that runs Linux programs inside an ordinary process without a VM. This is the slowest path; the numbers are below.
The converter is part of the uncontained repository, and the documentation explains how to use it and which images it can handle. For example, unc convert redis:7 --to freebsd/amd64,illumos/amd64 --push ghcr.io/<your-account>/redis adds FreeBSD and illumos variants to the redis image and pushes the result to your registry.
We checked what actually works. A run only counted if the container did real work: redis answered commands and kept a key, the web server served a page, the script printed its output. In the table, “native” is a build for that OS, “blink” is a Linux program under the emulator, “interpreter” is the substituted interpreter of that OS, “chroot” is running on Linux in an isolated root file system, “no” means it didn’t work, and a dash means there’s no way to do it at all.
| Image | Linux | FreeBSD | OpenBSD | NetBSD | illumos | Plan 9 | macOS | Windows | Android |
|---|---|---|---|---|---|---|---|---|---|
| hello (ours) | chroot | native | native | native | native | native | native | native | native |
| Caddy (ours) | chroot | native | native | native | native | — | native | native | native |
| Python sample (ours) | chroot | native | native | native | native | — | native | native | no |
| redis | chroot | blink | blink | no | blink | — | no | no | — |
| nginx | chroot | blink | blink | no | blink | — | no | no | — |
| python | chroot | blink | blink | blink | blink | — | interpreter | interpreter | no |
| busybox | chroot | blink | blink | blink | blink | — | blink | no | no |
Stock Docker Hub images ran on FreeBSD, OpenBSD and illumos without rebuilding and without a VM. On Android, the agent app runs native builds from images itself, but it can’t run containers whose programs are built against glibc. Android applies a seccomp system call filter to every app, and on x86_64 that filter blocks access, set_robust_list, rseq and clone3, which the glibc loader calls at startup. Under adb shell there’s no such filter, and the same images run there through the loader that ships in the image. Everywhere else, each failure has a concrete cause. On macOS with Apple silicon, memory pages are 16 KB, and under the blink emulator redis crashes while nginx exits before it starts serving. On Windows, blink crashes when it tries to map the program file into memory. NetBSD lacks the library that emulates Linux’s epoll, and without it redis and nginx won’t start under the emulator. Plan 9 can’t run Linux programs at all, so only native builds and WebAssembly work there.
A container can also move between operating systems along with its data. We took a container that keeps a counter in a volume and moved it Linux → FreeBSD → Windows → illumos. Not a single value was lost: on each new machine the counter resumed from the value saved in the last checkpoint.
Now for the overhead. We ran the same workload, finding the primes below three million, three ways: as a native build, under the blink emulator and in WebAssembly.
| Method | Startup | Computation | Memory |
|---|---|---|---|
| Native build | 1–7 ms | 0.2–0.9 s | 4–10 MB |
| blink emulator | ~55 ms | 17–21 s | 12–17 MB |
| WebAssembly | ~3 s | ~1.1 s | ~160 MB |
A native build runs as fast as any program on that OS, because that’s exactly what it is. Its cost lies elsewhere: every variant has to be built, stored in the registry and tested on its OS. Under blink, the same workload took 17–21 seconds instead of the native build’s 0.2–0.9 seconds, so 20 to 80 times slower. WebAssembly computes almost as fast as native, but takes about three seconds to start instead of a few milliseconds and uses about 160 MB of memory instead of 4–10 MB, because the agent compiles the module on every start.
Pods and nodes in a separate API server that plugs into the core
Now for the main test. We wanted to bring ordinary pods, the kubelet and Deployments back into the cluster, but have them live not in the core but in a separate API server that plugs into the core with one command and unplugs just as easily. From here on we call that separate server, together with the kubelet and the other container components, the container module. There was one condition: kubectl, the kubelet, controllers and the rest of the Kubernetes tooling had to work with such a cluster without any changes to their code.
The first obstacle was the API Aggregation Layer. With an APIService object, Kubernetes can hand an entire API group to an external server: the client talks to the main API server, which forwards the request. But that doesn’t work for the core v1 group, because an APIService named v1. takes over the whole /api path. There’s no standard way to hand pods and nodes to an external server while keeping namespaces and secrets in the core. So we added our own ResourceDelegation object to the core, which maps a resource to a server. The core proxies requests for /api/v1/namespaces/*/pods, /api/v1/nodes and the other container resources to the module, merges the API descriptions and keeps track of whether the module is available. Paths don’t change for clients, so the kubelet, kubectl and controllers notice nothing.
The module itself is a stock kube-apiserver, running alongside the stock kube-scheduler, kube-controller-manager, kubelet, kube-proxy and CoreDNS. You plug it in with one kubectl apply: within seconds the core starts serving pods, nodes and services, and the number of resource types grows from 34 to 75. Unplug the module, and the core once again answers kubectl get pods by saying it has no such resource type, while uncontained workloads running without containers keep going.
The best proof that this is still Kubernetes is the official conformance suite. The cluster made of the core and the module passed 461 of 462 Kubernetes v1.37 conformance tests. The only miss was the DRA objects test: etcd didn’t answer in time because the bench had a slow disk. When we ran that test on its own, it passed. Along the way we had to fix several places where a core without pods misbehaved. The kubelet crashed on a service account token that wasn’t bound to a pod, so the core now signs bound tokens itself. The core rejected its own tokens because it looked for the pod in its own storage while the pod lives in the module; now it looks up pods and nodes in the module. And admission...























