What is the difference between Docker Swarm and Kubernetes/Mesophere?
Asked Answered
H

2

12

From what I understand, Kubernetes/Mesosphere is a cluster manager and Docker Swarm is an orchestration tool. I am trying to understand how they are different? Is Docker Swarm analogous to the POSIX API in the Docker world while Kubernetes/Mesosphere are different implementations? Or are they different layers?

Haematozoon answered 6/12, 2014 at 18:25 Comment(0)
F
11

Swarm is a very simple add-on to Docker. It currently does not provide all the features of Kubernetes. It is currently hard to predict how the ecosystem of these tools will play out, it's possible that Kubernetes will make use of Swarm.

Fresnel answered 6/12, 2014 at 18:26 Comment(3)
Could you elaborate on the features Kubernetes provides over Swarm? I'm still trying to understand the exact differences myself.Spindle
Swarm can place a container in cluster, it won't reschedule it, for example. Kubernetes also has a lot more features on the networking side.Fresnel
Kubernetes adds functionality like Service discovery, application health checking, replication, staged rollouts, that make it easy to build and manage distributed systems.Whop
W
25

Disclosure: I'm a lead engineer on Kubernetes

Kubernetes is a cluster orchestration system inspired by the container orchestration that runs at Google. Built by many of the same engineers who built that system. It was designed from the ground up to be an environment for building distributed applications from containers. It includes primitives for replication and service discovery as core primitives, where-as such things are added via frameworks in Mesos. The primary goal of Kubernetes is a system for building, running and managing distributed systems.

Swarm is an effort by Docker to extend the existing Docker API to make a cluster of machines look like a single Docker API. Fundamentally, our experience at Google and elsewhere indicates that the node API is insufficient for a cluster API. You can see a bunch of discussion on this here: https://github.com/docker/docker/pull/8859 and here: https://github.com/docker/docker/issues/8781

Whop answered 12/3, 2015 at 21:17 Comment(0)
F
11

Swarm is a very simple add-on to Docker. It currently does not provide all the features of Kubernetes. It is currently hard to predict how the ecosystem of these tools will play out, it's possible that Kubernetes will make use of Swarm.

Fresnel answered 6/12, 2014 at 18:26 Comment(3)
Could you elaborate on the features Kubernetes provides over Swarm? I'm still trying to understand the exact differences myself.Spindle
Swarm can place a container in cluster, it won't reschedule it, for example. Kubernetes also has a lot more features on the networking side.Fresnel
Kubernetes adds functionality like Service discovery, application health checking, replication, staged rollouts, that make it easy to build and manage distributed systems.Whop

© 2022 - 2024 — McMap. All rights reserved.