Running PostgreSQL on Kubernetes · Day 2 Operations with CloudNativePG
Demo 2 — ObjectStore + Backup
Wire the barman-cloud plugin sidecar, archive WAL and base backups to S3.
Beats
- 0:05Credentials + ObjectStore CR: where base backups + WAL go.
- 0:1002-objectstore.yaml on screen
- 0:13Wire the cluster to the plugin. isWALArchiver: true -> plugi
- 0:1802-cluster-patch.yaml on screen
- 0:23Rolling restart: watch the barman-cloud sidecar appear in ea
- 0:452/2 — the sidecar is a native (init) container next to postg
- 0:56Two CRs. Backup runs once on creation. ScheduledBackup is a
- 1:0102-scheduled-backup.yaml on screen
- 1:09Fire it. The sidecar runs barman-cloud-backup.
- 1:28The ObjectStore reports the window you actually have, not th
- 1:35Base backup + WAL are in S3 (SeaweedFS). This is what PITR +
Replay it locally
asciinema play -i 2 demos/demo2.cast ·
download the cast