Hacker News new | ask | show | jobs
by mrfusion 2308 days ago
Why kubertetes vs docker? And why rust vs D or golang ?
4 comments

My God does Kubernetes sometimes feel like using a cannon to remove a zit.
Ha! I realized this yesterday after considering it (very briefly) for a home lab deployment—I’m pretty sure I dodged a cannonball on that one.
Docker-compose with nginx-proxy should work well for home labs.
You may also use Caddy instead of Ngnix. It's way easier to set up and customize.
Until it's not just one machine. You might briefly then use Swarm... But does anyone for long, whether production or home?

K8s has its complexities for sure, but to me it's the simplest - or at least 'only figure it out once' way of running multiple machines (besides having 'the webserver', 'the db server' etc., of course.)

I feel like there should be a better thing than kubernetes. In theory it’s simple, but in practice it’s so convoluted!
Yeah, that’s the plan I went back to when I realized I was way off track!
I can agree on this :p
> Why kubertetes vs docker?

Docker is for building a computer program to run on a single computer.

Kubernetes is for building a cluster, often across many computers with many programs.

They work together.

Kubernetes still almost always uses Docker as the runtime. Docker was late to the party with all the other stuff Kubernetes does. With Amazon, Google and Microsoft all offering managed K8s and Enterprise private cloud offerings too, I don't think unseating K8s as a management plane for cloud-native microservices will be trivial, even if the tech is immature and has valid criticisms.
Kubernetes and Docker (if we're talking about Docker as CRI, most often this is implicitly assumed) are totally different things.