Ravindra BagaleCourses & study guides मराठी

DevOps

Chapter 67: Docker Swarm vs Kubernetes: the Same App on Both, Side by Side

We run the same orders app first on Docker Swarm and then on Kubernetes. On both sides we scale, rolling-update, use secrets and health checks. Finally we compare the two tools side by side so you know which to pick in interviews and on projects.

What you will learn in this chapter

  • Create a Docker Swarm with managers and workers and understand Raft quorum
  • Deploy, scale, update and roll back a stack on Swarm with secrets and health checks
  • Deploy the identical app on Kubernetes with kind and the same image
  • Compare scheduling, scaling, updates, networking, storage, secrets and ecosystem side by side
  • Choose the right orchestrator for a team and migrate a Swarm stack to Kubernetes

Concepts in this chapter

  1. 67.1Docker Swarm from zero: managers, workers, Raft and your first service
  2. 67.2Deploy the orders app on Swarm: stack file, secrets, health checks, scaling and rolling updates
  3. 67.3The same app on Kubernetes: kind cluster, Deployment, StatefulSet, Secret, scaling and rollouts
  4. 67.4Side by side: scaling, updates, self-healing, networking, storage, secrets and config compared
  5. 67.5Choosing and migrating: when Swarm fits, when Kubernetes wins, and moving a stack across

The chapter recap is at the end of the last concept page.