PostgreSQL on K8s at Zalando: Two years in production
summary
Zalando runs hundreds of clusters on Kubernetes for two plus years using Zalando Postgres-Operator and a Patroni-based setup, automating creation via single manifests that declare size, storage and secrets. It achieves HA with streaming replication and automated failover, but faces real failures: disk‑space surprises that break backups, very large backup files that delay recovery, and frequent OOM kills from mis‑set memory requests/limits that restart pods and stall writes. The operator reduces manual toil and avoids commercial lock‑in while not eliminating cloud infra edge cases.
AI-written summary · about
chapters (24)
- 0:00Introduction and speaker background
- 1:14Kubernetes and container basics
- 2:42Challenges of PostgreSQL on Kubernetes
- 4:08Master node and high availability
- 5:12Production deployment and incident management
- 7:03StatefulSet and persistent volumes
- 8:10Backup and recovery tools
- 9:16Patroni for PostgreSQL management
- 12:10Common problems and horror stories
- 15:08Live site incident and recovery
- 16:58Custom resources and operators
- 18:00Operator design and implementation
- 20:13Persistent storage and secrets
- 21:38Failover and replica management
- 23:11Monitoring and disk space issues
- 25:41Performance and resource limits
- 27:50Backup tools and limitations
- 30:04Exclusive backups and recovery
- 31:32Out of memory issues and debugging
- 34:04Memory limits and container configuration
- 37:00Resource requests and limits
- 38:50Production fixes and improvements
- 40:19Open source contributions and future
- 41:33Q&A and closing remarks
