Live data from Hacker News

I ported Kubernetes to the browser

ngrok.com

101–110 of 110 posts

Re: I ported Kubernetes to the browser

#101

Earlier quoted context omitted.

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).

Save the insults. Make points. mAnY lAyERs aside if it doesn’t actually do anything you have not ported anything. It has to WORK to be a port. See the PlayStation emulator example - same thing. The game itself is not ported but it still runs. That’s the point!

It is porting, and I quote the post

> A partial port of Kubernetes’ “kubelet” binary, enough to run pods and probe them.

> Ports of several Kubernetes “controllers”: pod scheduler, namespace controller, kube-proxy, deployment controller, and a few more.

plus a re-implementation of the CNI and a container runtime.

Re: I ported Kubernetes to the browser

#102

Earlier quoted context omitted.

Save the insults. Make points. mAnY lAyERs aside if it doesn’t actually do anything you have not ported anything. It has to WORK to be a port. See the PlayStation emulator example - same thing. The game itself is not ported but it still runs. That’s the point!

It is porting, and I quote the post > A partial port of Kubernetes’ “kubelet” binary, enough to run pods and probe them. > Ports of several Kubernetes “controllers”: pod scheduler, namespace controller, kube-proxy, deployment controller, and a few more. plus a re-implementation of the CNI and a container runtime.

Kubernetes runs on the infrastructure where your services are deployed.

That is not happening here. This is a simulation of a web based kubernetes control plane.

The whole point of the movement toward Docker/kubernetes is that you can run services anywhere without needing a 1:1 OS/physical machine configured for that service. It's an evolution on hijacking VMs for this use case. Consider what this technology is, and is for.

To say it has been ported to the browser would mean I could run e.g. postgres service in my browser the same way installing kubernetes on some cloud provider lets me run it there without having access to that machine directly.

He hasn't ported kubernetes to a browser. If I use some cloud provider UI to configure kubernetes I would not say that k8s is running in that browser tab. I'd just be using a web based dashboard.

Yes it can visualize activity, logs, etc. but kubernetes is not actually provisioning, managing state, scheduling, etc. in its environment (the browser) the way it did in an OS environment. And correct me if I'm wrong - but it's not even calling out to other environments - these are mere simulations of services that aren't running anywhere. Aren't they?

It wouldn't be impossible to do what the title implies is happening - See JSLinux to actually see Linux in a browser. It aint pretty, but that's the kind of thing I'd think of if somebody said they ported kubernetes to the browser. I should be able to run stuff there.

Re: I ported Kubernetes to the browser

#103

Earlier quoted context omitted.

> Make points. mAnY lAyERs aside if it doesn’t actually do anything you have not ported anything. You might consider reflecting on this long thread which seems to be solely about your personal definition of the word "port", and arguing with others that the definition should be what you say. Particularly because you're now stooping to insulting other HN posters over one technical definition of one word.

I am not redefining what a port is – but you are No amount of whining is going to change anything. The only thing that would change my opinion is if it actually worked. And I don't think I was being insulting at all. What I replied to: "pretty clear you don't know well enough what you are talking about" is the real insult in this thread, which is what I called out :) Those statements are so boring and don't prove any…

> I am not redefining what a port is – but you are

> You haven't changed my mind at all so far, I still think this doesn't qualify as a port.

as it turns out, I'm not actually interested in debating over the meaning of a word, or convincing anyone to change their mind on it

Re: I ported Kubernetes to the browser

#104
post #74

Earlier quoted context omitted.

But Kubernetes isn't postgres or ruby or containers. It's the orchestration service. Your comparison doesn't make sense.

It’s like saying you ported PlayStation to the browser but no games work. It would be the most pointless emulator ever. And it wouldn’t qualify as being ported IMO

Separately from any details of this post, I think you misunderstand what kubernetes is. To me, that's something worth reading and thinking about.

You seem to think it's like a virtual machine, and it lets you run containers anywhere regardless of operating system or host machine. This is not correct. You can't run containers using k8s directly on a Mac, for example, because there is no Linux kernel to run the container. You need a VM first, then you can run k8s inside of that VM. Kubernetes does not let you magically run a container with ARM binaries on an x86 machine either. You would need additional tools to run binaries for another architecture.

You're totally right that in practice, you usually don't need to think about the host OS when you're using k8s. It is nice to not worry about what packages it has installed, etc. But it is not a tool that allows you to run an arbitrary container anywhere.

Re: I ported Kubernetes to the browser

#105

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

The reconciliation simulator goes crazy when I change the expected pods on iphone. Its a cool site btw

same on firefox on android

Re: I ported Kubernetes to the browser

#106

Earlier quoted context omitted.

It’s like saying you ported PlayStation to the browser but no games work. It would be the most pointless emulator ever. And it wouldn’t qualify as being ported IMO

Separately from any details of this post, I think you misunderstand what kubernetes is. To me, that's something worth reading and thinking about. You seem to think it's like a virtual machine, and it lets you run containers anywhere regardless of operating system or host machine. This is not correct. You can't run containers using k8s directly on a Mac, for example, because there is no Linux kernel to run the contain…

Nope, I don't think (and don't think I said) it's a VM, or that it can allow you to run any software on any hardware. I have been coding long enough to remember using VirtualBox to do Ruby work for clients :)

I may have alluded to that experience - in saying that we used to use VMs for the same use case (isolation) before mainstream containerization like Docker. But yeah I know the two are unrelated.

The idea of installing software in an isolated (emulated) environment - a snapshot of the OS ("disk image") - is not so different from the PSX emulator analogy since emulators also work that way.

Docker got popular before Kubernetes was even created. It was after the fact that it became its own thing, and tried to become just an "orchestration layer" but it means nothing without containerization.

To say you ported it to the browser with no working containers doesn't mean anything to me. What was ported?

It's like saying you ported PlayStation to Chrome but no games will play. How is it a port of anything.

Re: I ported Kubernetes to the browser

#107

Earlier quoted context omitted.

I am not redefining what a port is – but you are No amount of whining is going to change anything. The only thing that would change my opinion is if it actually worked. And I don't think I was being insulting at all. What I replied to: "pretty clear you don't know well enough what you are talking about" is the real insult in this thread, which is what I called out :) Those statements are so boring and don't prove any…

> I am not redefining what a port is – but you are > You haven't changed my mind at all so far, I still think this doesn't qualify as a port. as it turns out, I'm not actually interested in debating over the meaning of a word, or convincing anyone to change their mind on it

> K8s doesn't run containers, container runtime environments do.

> K8s sits on top of those and orchestrates them.

> I'm not actually interested in debating over the meaning

Ok.

Did you know that k8s came after containerization, and means nothing without it

Re: I ported Kubernetes to the browser

#108

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

This is really cool but the trace advances quite quickly I had to run through a couple of times to read all of the text.

Re: I ported Kubernetes to the browser

#110
post #38

This is awesome. Wish I had the idea first. I see this as a fun learning and experimental tool. For a while I have wanted to make a web page where you can do service load balancing and queuing simulations so this would be a great basis for it.

I have some potentially bad news for you: https://samwho.dev/load-balancing https://encore.dev/blog/queueing

Oh I am happy to just enjoy and link to those
Post reply on HN