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

  1. 0:05Credentials + ObjectStore CR: where base backups + WAL go.
  2. 0:1002-objectstore.yaml on screen
  3. 0:13Wire the cluster to the plugin. isWALArchiver: true -> plugi
  4. 0:1802-cluster-patch.yaml on screen
  5. 0:23Rolling restart: watch the barman-cloud sidecar appear in ea
  6. 0:452/2 — the sidecar is a native (init) container next to postg
  7. 0:56Two CRs. Backup runs once on creation. ScheduledBackup is a
  8. 1:0102-scheduled-backup.yaml on screen
  9. 1:09Fire it. The sidecar runs barman-cloud-backup.
  10. 1:28The ObjectStore reports the window you actually have, not th
  11. 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