In this section, we will compare the Docker Swarm and Kubernetes features side by side to get a good idea of how they solve common problems. We have discussed these concepts in both this chapter and in Chapter 8, Orchestration Using Docker Swarm. They have common approaches to many problems:
Parameters | Docker Swarm | Kubernetes |
High-availability solution | Provides high availability for core components. | Provides high availability for core components. |
Resilience | All services run with resilience based on the state definition. | All resources based on replication controllers will provide resilience (ReplicaSet, DaemonSet, Deployment, and StatefulSet) based on the state definition. |
Infrastructure as code | The Docker Compose file format will allow us to deploy stacks. | We will use YAML to format resource files. These will allow us to deploy workloads using a declarative format. |
Dynamic distribution | Application components and their replicas... |