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

222 points•mmcclure•2 days ago•75 comments•

75 comments

jmorenoamor1 day ago
I read abut linux kernel webassembly port while drinking my morning coffee, a minute later I read about an oci runtime in a tab and jokingly think to myself: cool, now I can run my k8s cluster in chrome.

Five minutes later, here we are.

odiroot1 day ago
Botnets can now be orchestrated in such elegant and reliable way!
hbogert1 day ago
I had the same thing , ive moved the goalpost to Ceph in the browser; surely that won't happen
jurgenburgen1 day ago
Why not? I mean maybe not _Ceph_ but some distributed storage driver should be possible.
znpy1 day ago
we have kubernetes in chrome tabs before rootless kubernetes as stable.

(i know it's in beta as of k8s 1.37, i know...)

debarshri1 day ago
Kata containers in browser was a thing too
inasio2 days ago
Quebec devs might be amused with the name
cachvico1 day ago
Hostie de pod!
wild_egg2 days ago
Glad I'm not the only one who pronounced it that way
xg151 day ago
Not a Canadian, so had to look it up. It's a slur?!
stavros1 day ago
Lots of holy things are slurs in various languages. Hostia in Spanish (and Quebec French), "holy shit", "fucking hell", etc.
yeowMeng1 day ago
tabarnoche
tab-ehr-NET!
c-hendricks2 days ago
Was hoping this would be more on the tabernac side of things
uproarchat2 days ago
Cool it, my mother is in the room
pcthrowaway2 days ago
I would have liked to be able to tell which node I am. None of them matched my os/browser/location combo

From what I understood of the description, it sounded like with two tabs open I should appear as one node with slots for two pods (using cross-tab coordination to determine how many pods to host in my "node"). I think something was explained poorly (or I understood it poorly) because I didn't see any node running more than one pod.

But still an incredibly cool idea! I'm assuming there is only one control plane node, running on the server, and the connectees are just worker nodes? Or is each tab its own worker node?

edit: I somehow missed the big "Join the cluster" button and assumed I was already part of it.

nickmcc1 day ago
Interesting! I built a different take on this with a virtual cluster in your browser with a real control plane and KWOK nodes for learning K8s and replicating failure modes: https://github.com/k5njm/kubewasm
whatever11 day ago
Help me understand. Now by visiting a page I can join a botnet and they can run any code on my machine (not just JavaScript)?
xg151 day ago
Yes, but much in the same sense that websites could already run JavaScript code before. I.e., that part isn't new, and it runs in the same sandbox, so there is no security breach.

What's new is that it runs an entire Linux kernel on it and also emulates the structure of a Kubernetes cluster - so the cluster can assign your tab workloads, route requests to it, etc.

As with all those demos where "the server sends requests to the page" instead of the usual other way around, it's probably implemented using a WebSocket or WebRTC connection to the demo's server. The page has to open that connection first, but once it's open, both page and server can exchange arbitrary messages, so that's often used to make server-driven pages.

But this means your machine is not open to receive arbitrary packets, it all has to go through that one connection.

It all doesn't really do much except contributing some bit of compute resources from your machine to their cluster while you have the tab open - and giving you a log view so you can watch it receiving requests and feel proud.

joshribakoff1 day ago
If the cluster was configured to allow any untrusted participant to run arbitrary workloads on the cluster it could then send malicious network traffic from your IP. You can’t safely assume no threat vector just because there is a sandbox involved!
stogot1 day ago
It was possible with WASM run python or ruby in your browser prior
joshribakoff1 day ago
Right but most websites serve code that was written and deployed by the owner of the website. Kubernetes is code that lets people upload and execute other code. Note this runs in a sandbox but its still on your machine.

Read the full thread on Hacker News →

Related stories