DEV Community

Discussion on: Kubernetes or Docker Swarm?

Collapse
 
jillesvangurp profile image
Jilles van Gurp

Kubernetes is indeed a beast to set up whereas you can automate docker swarm cluster creation with some straight forward ansible scripts (or whatever you prefer). There's not much to it: install docker, configure keys, fire it up. Done. Of course doing it properly involves a lot more.

This is the point with Kubernetes: you don't reinvent the wheel of automating its deployment. Instead you use either hosted Kubernetes or something like kops to automate cluster creation and management. That nicely hides the complexity of setting it up properly. And of course setting it properly is not really optional. You want it to be secure. You want it to be resilient, etc. This requires mitigating all sorts of problems. You can try to do that yourself but it is better to reuse what others have done here and benefit from improvements that happen over time for issues you probably never even realized you had.

Docker swarm is nice in it's elegance but Docker (the company now officially backs both swarm and kubernetes. This has been widely interpreted as Kubernetes having "won". In practical terms we can expect Docker spending less energy on swarm or promoting that as a preferred solution and I would not be surprised to see it eventually disappear. So, sadly Swarm seems like it is a dead end. I would not waste time on it.

Collapse
 
pavanbelagatti profile image
Pavan Belagatti

That's a great explanation. Ya, even when I asked the same thing on my other social networks, many people prefer Kubernetes over Docker Swarm. So yes, I see Kubernetes winning here.