Backups: pg_dump → S3 (MEGA S4); drop local PVC

This commit is contained in:
git_admin
2026-04-26 21:17:34 +03:00
parent 24f879db01
commit 3a63da9609
3 changed files with 75 additions and 45 deletions

View File

@@ -78,11 +78,24 @@ backups:
# Cron schedule for the automatic backup job. Default 03:00 UTC
# daily — quiet hour for most timezones, non-business in EU/US/AS.
schedule: "0 3 * * *"
# PVC size for retained dumps. Holds ~7 days of dumps for a small
# instance; scale up via overlay if the instance has a large DB.
storage: 10Gi
# How many dumps to retain. Older ones are pruned by the same Job.
# How many dumps to retain in S3. The backup job prunes older
# objects matching the instance's prefix on every successful run.
retain: 7
# S3-compatible destination. The endpoint + region + bucket are
# NON-secret and live in this committed values.yaml; the AWS
# credentials live in a K8s Secret named by `credentialsSecret`,
# provisioned out-of-band by Tower's bootstrap script (which reads
# from OpenBao). The chart never sees access/secret keys directly.
s3:
endpoint: https://s3.eu-central-1.s4.mega.io
region: eu-central-1
bucket: odoosky-v3-backups
# Per-instance S3 key prefix. Each instance writes under its own
# code/ subdirectory inside the shared bucket.
prefix: "{{ .Values.instance.code }}"
# Name of the K8s Secret holding AWS_ACCESS_KEY_ID +
# AWS_SECRET_ACCESS_KEY. Mounted via envFrom on the backup Job.
credentialsSecret: s3-backup-creds
ingress:
# Traefik entrypoint name (set on the Traefik install in the