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.
एकाच orders app आपण आधी Docker Swarm वर चालवू आणि मग Kubernetes वर. दोन्हीकडे scale, rolling update, secret आणि health check करून बघू. शेवटी दोन्ही tools ची side-by-side तुलना करू, म्हणजे interview मध्ये आणि project मध्ये कोणता tool कधी निवडायचा हे स्पष्ट कळेल.
एक ही orders app पहले Docker Swarm पर चलाएंगे और फिर Kubernetes पर. दोनों तरफ scale, rolling update, secret और health check करके देखेंगे. आखिर में दोनों tools की side-by-side तुलना करेंगे, ताकि interview और project में कौन सा tool कब चुनें ये साफ़ हो.
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
- 67.1Docker Swarm from zero: managers, workers, Raft and your first service
- 67.2Deploy the orders app on Swarm: stack file, secrets, health checks, scaling and rolling updates
- 67.3The same app on Kubernetes: kind cluster, Deployment, StatefulSet, Secret, scaling and rollouts
- 67.4Side by side: scaling, updates, self-healing, networking, storage, secrets and config compared
- 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.