TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Why did K8s win against Docker Swarm?

15 pointsby r4victor6 months ago
Docker Swarm Classic (https:&#x2F;&#x2F;github.com&#x2F;docker-archive&#x2F;classicswarm) is dead. Docker Swarm Mode is alive, and I know some people use it, but it&#x27;s very niche compared to k8s.<p>As someone who interacts with k8s regularly, I often feel like there is a place for a simpler k8s alternative. But looking at history I see the attempts like Swarm fail.<p>What do you think played the decisive role in the k8s victory? Features, openness, extensibility, something else? And do you think if there is a demand for a simper k8s alternative or is it destined to repeat k8s complexity to be useful? If there is such a demand, where did Swarm fail in particular?

6 comments

nik7366 months ago
I don&#x27;t think Swarm Mode failed. We are using it in production for 1000s of Hosts very reliably, it&#x27;s a great piece of technology! :-)<p>K8s simply has all the hype and no one got fired for running k8s. I was thinking the same as you, k8s is quite complex, has a lot of options and moving parts which we don&#x27;t need.
评论 #42239152 未加载
speedgoose6 months ago
It’s just one anecdote but I did run a Docker Swarm Classic cluster and a Kubernetes cluster for years on about 10 bare metal PCs in my worklab.<p>I initially preferred Docker Swarm for its simplicity, and most of the nodes were in the Swarm cluster.<p>But I quickly noticed ask issue: Docker Swarm had networking issues. I remember that I wasn’t alone experiencing network issues and disliking debugging with iptables.<p>Meanwhile, Kubernetes with the flannel CNI was super reliable. I actually ditched Docker Swarm for Rancher 1. It wasn’t based on Kubernetes at the time. It had some JVM based networking thing that worked but used a lot of CPU. We also had some Mesos testing.<p>Maybe the new Docker Swarm works, but it’s too late. Kubernetes won.<p>Kubernetes is more complex but tools like kompose makes the transition easier.
JojoFatsani6 months ago
For better or worse Kubernetes is capable of handling any edge case you could possibly throw at it.<p>The ecosystem of helper tools (load balancers, secrets control, etc) is also huge and well supported.
whinvik6 months ago
As someone having inherited a Hashicorp Nomad setup I realize that while it is much simpler, no one really builds anything on top of Nomad.<p>If I wanted a DAG, I can use Argo Worklows with k8s, nothing with Nomad. If I wanted to do lots of data processing I can use Spark on k8s, nothing on Nomad. I am sure this is true with other alternatives as well.
iamwil6 months ago
I found the documentation for k8 much better than Docker swarm when I was deciding between the two at the time, even though k8 was more complicated.
ActorNightly6 months ago
K8 is basically a translation layer whereas swarm is still docker.