Skip to content

From Compose to Swarm to Kubernetes

Select an icon to see what it is.

Step 1 of 6

What stays the same

In Compose, Swarm and Kubernetes you still describe images, ports, environment variables, volumes and health. What changes is who runs them: one host, a Swarm cluster, or a Kubernetes cluster. The words change too, so a table of equivalents helps.

PrevNext

Rough equivalents

Compose service -> Swarm service -> Deployment plus Service
healthcheck -> healthcheck -> liveness and readiness probes
secrets: file -> Swarm secret -> Secret
named volume -> volume -> PersistentVolumeClaim