Swarm and Kubernetes: orchestration boundaries
Worked example
This is an offline lesson. Data are fictional and Docker commands are unexecuted. Any optional execution requires an authorized disposable VM, a verified context, synthetic data, restricted access and no external transmission. Do not collect secrets or private output. Use only the fictional worksheet for this exercise. Before a separately authorized read-only server query, verify the effective endpoint including environment overrides, project or cluster identity, and access scope. Never deploy the fragments, use real credentials or transmit private inspection output.
Conceptual mapping, not a conversion table:Swarm replicated service -> Kubernetes Deployment (workload intent)Swarm service network endpoint -> Kubernetes Service (stable access concept)Swarm task -> Kubernetes Pod (approximate scheduling unit)Swarm config / secret -> ConfigMap / Secret (different protections)Swarm manager -> Kubernetes control plane (different components)Compose on one host -> no automatic cluster equivalentA Kubernetes Pod may contain more than one container, unlike the usual Swarm task-container relationship. A Kubernetes Deployment manages rollout of replicated Pods through ReplicaSets, while a Kubernetes Service defines network access to selected endpoints. The name service in Swarm combines workload and networking concerns differently. Secret storage, networking implementations, identity, persistence, update controls and failure recovery are not directly portable. For Kubernetes, use its dedicated curriculum for manifests, namespaces, probes, resource requests, access controls and storage. A small single-host application may need only Compose; multi-host reconciliation can justify orchestration if the team can operate it. Neither orchestrator supplies database high availability, backups or verified disaster recovery automatically. Compare lifecycle support, operational ownership, skills, constraints and acceptance evidence. The comparison is approximate: Kubernetes Deployment, Service and Pod have distinct APIs and lifecycle behavior. Kubernetes Secret encryption at rest must be configured and verified; do not infer identical storage protection from the name Secret. Compare operational ownership and tested data recovery before selecting a platform.
Common mistake
Do not translate a Swarm service directly to a Kubernetes Service and expect it to create application replicas.
Manual practice
Compare three fictional choices: a small single-host app, a team already operating Swarm, and a multi-team Kubernetes platform. Write a decision matrix for failure domains, operations, data recovery, portability and skills. Identify Kubernetes topics requiring a separate course.
Worksheet: lab-fixtures/docker-swarm-orchestration/09-kubernetes-handoff/scenario.txt.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Swarm and Kubernetes: orchestration boundaries — Knowledge check
Interpret cluster orchestration evidence and make a safe operational decision.
Which Kubernetes object defines a replicated rollout?
Is a Pod exactly the same as a Swarm task?
Does choosing an orchestrator establish database HA automatically?