Live data from Hacker News

I ported Kubernetes to the browser

ngrok.com

81–90 of 110 posts

Re: I ported Kubernetes to the browser

#81

What are you using to replace etcd here? Where is state stored?

They implemented a store in TypeScript: https://github.com/ngrok/webernetes/blob/main/src/cluster/st... etcd is not a requirement of k8s, plenty of clusters out there use non-etcd stores. E.g. k3s/k3d can use sqlite, all of the big cloud providers use their own in-house datastores instead of etcd.

I learned that etcd wasn’t required while making webernetes! I’d always thought it was, was cool to learn some clusters use other storage backends.

Re: I ported Kubernetes to the browser

#84

As SRE, Deployment, Replica Sets and Services are generally the easy part. The hard part which he noted: >Right now, it doesn’t support ConfigMaps, Secrets, pod resources, persistent volumes, and a whole host of other things I haven’t needed yet. As I make more content with this library, I’ll implement more of what I need. Yea, this is initial start to the madness followed by Ingress Controller and all little weird c…

I agree. This isn't what people struggle with to be honest. With the limitations, right now it is sloppy unfortunately... Yet cool to release it nontheless.

Re: I ported Kubernetes to the browser

#85

As someone who loves teaching and building this can be very useful For example i built this https://kubernetes-made-simple.vercel.app/ Now i can add this

Awesome site.

What’s one thing most people get wrong about k8s that makes learning unnecessarily difficult?

Re: I ported Kubernetes to the browser

#87
I've seen Sam working on this real time as I follow him on BlueSky. So maybe it's technically a slop but I've seen a proof of work.

Won't comment on the product because not my cup of tea.

I'm team cli ftw :)

Re: I ported Kubernetes to the browser

#89

Earlier quoted context omitted.

I get your point. I will disagree that it "doesn't work". It does! You just can't use it for real production workloads since it runs in your browser. If you ported kubernetes to your toaster would it be a port? I think so, but you probably couldn't deploy prod on it. That's just a fun semantics conversation though. Is a taco a sandwich? :-)

Considering what kubernetes actually is - there's a fantastic use case if you really did port it to the browser. So when someone says they did it, I kinda expect that they literally ported that containerization logic to JavaScript. That would mean I could run an image of an OS like Linux in browser JavaScript. It's a wild thing, but that's what porting literally means! And what I expected with that title. Think of li…

Sorry to be blunt but from the messages you have written in this threads it is pretty clear you don't know well enough what you are talking about.A real working Kubernetes cluster has many layers of abstractions and the lower ones are outside Kubernetes completely (i.e. containerd or the Linux kernel itself).

Re: I ported Kubernetes to the browser

#90
post #85

As someone who loves teaching and building this can be very useful For example i built this https://kubernetes-made-simple.vercel.app/ Now i can add this

Awesome site. What’s one thing most people get wrong about k8s that makes learning unnecessarily difficult?

Thinking that the range of capabilities is a setup todo list.

Particularly storage.

Post reply on HN