Tabernetes turns browser tabs into Kubernetes cluster nodes

Tabernetes, presented at tabernet.es, is a Kubernetes cluster whose nodes are browser tabs. A visitor opens the page and the phone or browser becomes a node: the scheduler sends it a pod, and the pod's program runs on a Linux kernel booted in the tab. People can scan a code to join with another device or use the browser they are reading in. Joining downloads about 5 MB and runs a small Linux guest on one core until the tab is closed. At that point the node is gone, and Kubernetes starts the pod on someone else's tab.

The page describes three steps. First, the join page holds a socket open to an agent that sits beside the API server, and the agent registers a Node for the tab. Second, the scheduler sends a pod, and the agent starts its container with tabc, a container runtime whose containers run in browser tabs. Third, the tab boots Linux: a kernel compiled to WebAssembly runs the pod's program on the tab's CPU and memory, while the pod's files and its address stay on the cluster's machine.

The control plane is an ordinary Kubernetes and a pod is an ordinary pod. The one new line in a manifest is runtimeClassName: tab. The scheduler puts a pod carrying that line on a tab and every other pod on the cluster's own machine. The example manifest runs an alpine container that echoes a hello message with the output of uname -m, then sleeps for 3600 seconds.

Visitors can try the cluster directly. They can send a request to a Service, where one of the pods behind it answers from whichever phone it is on and counts the visit in a Redis on someone else's device. A button makes the cluster draw a Mandelbrot set split into 64 tiles, with each node's pod computing its share in awk; pointing at a tile shows which device drew it. Only one picture is rendered at a time, for everyone.

The page also has a topology view with the control plane in the middle, a node for each tab and Services on the way to their pods, plus live panels for boot time, request latency, Services, recent activity and the fleet of nodes.

Key facts

  • Opening the page makes a phone or browser a Kubernetes node; joining downloads about 5 MB and runs a small Linux guest on one core until the tab closes.
  • A kernel compiled to WebAssembly runs the pod's program on the tab's CPU and memory, while the pod's files and address stay on the cluster's machine.
  • An agent beside the API server registers each tab as a Node and starts containers with tabc, a runtime whose containers run in browser tabs.
  • A pod opts in with one new line, runtimeClassName: tab; pods without it run on the cluster's own machine.
  • Visitors can send requests to a Service or have the nodes draw a Mandelbrot set in 64 tiles; if a tab closes, Kubernetes starts its pod on someone else's.

Why it matters

The project puts a familiar system on unusual hardware. According to the page, the control plane is ordinary Kubernetes and the pods are ordinary pods, yet the machines doing the computing can be visitors' phones. The only change in a manifest is the line that asks for a tab. The demos make the behavior visible: requests travel to pods on participants' devices, and each tile of the Mandelbrot picture can be traced to the device that drew it. No production use case or purpose is claimed for the cluster.

Who it affects

Anyone who opens the page and joins lends the cluster one core, plus the tab's memory, until the tab is closed. People who work with Kubernetes get a live example of the scheduler placing standard pods on browser tabs. Other visitors can use the same cluster by sending requests to its Services or starting a picture render, which relies on the pods running on participants' devices.

How to use it

Open tabernet.es and join from the browser you are using, or scan the code to join with another device. Joining downloads about 5 MB. Once nodes are running, you can send a request to a Service or press the button to render the Mandelbrot set. The picture is shared, one at a time for everyone. To place a pod on a tab, the manifest sets runtimeClassName: tab under spec, as in the page's alpine example. Closing the tab removes your node.

How solid is it

This account rests on the project's own page, which describes how the system works and offers live controls to try it. The page defines two measurements. Boot time runs from the tab being handed the pod to the pod's program running, covering page loading, kernel boot and image mounting. Request latency runs from the agent handing a request to the Service to the answer returning from a pod in a tab, timed on the cluster's machine. No boot time or request latency values are given. No author, company or maintainer is named, and no source code repository or license is mentioned.

Risks and caveats

Nodes last only as long as their tabs stay open. Kubernetes starts the pod on another tab when one closes, but the page does not say that pod state or memory is preserved or migrated. Pods answer requests from other people's phones, and nothing is said about security, isolation or the privacy of participants. On resource use, the stated facts are the download of about 5 MB and the single core; nothing further is said about battery or resource consumption.

“Open the page and your phone is a node. The scheduler sends it a pod, and the pod's program runs on a Linux kernel booted in the tab.”

— tabernet.es project page