How to Build a Docker PaaS
summary
Describes a concrete Node.js PaaS built on Docker and CoreOS and how service discovery actually works: sidecar containers write IP:port lists into etcd with TTL writes, confd watches that directory and renders HAProxy per host configs, and dnsmasq returns the host IP so every service request hits the local proxy. Covers Weave and flannel as alternate networking options, explains using HAProxy to drain old backends for zero-downtime deployments, and shows this arrangement stays consistent as containers move.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 1:53Key challenges in PaaS
- 3:39Service discovery explained
- 7:10DNS vs dynamic proxy
- 9:14Dynamic proxy concept
- 11:03HAProxy setup in PAAS
- 12:34Configuring with etcd
- 15:22Using confd for HAProxy
- 17:35Zero downtime deployments
- 18:38Multi-host Docker networking
- 20:26Docker daemon limitations
- 21:49Summary and takeaways
