- Ansible: basic, with-exporter, with-notifications, enterprise playbooks - Kubernetes: CronJob, ConfigMap, ServiceMonitor, PVC manifests - Prometheus: alerting rules (RPO/RTO/failure) and scrape configs - Terraform: AWS S3 bucket with lifecycle policies - Scripts: GFS backup rotation and health check (Nagios compatible) All playbooks support: - Scheduled backups with systemd timers - GFS retention policies - Prometheus metrics exporter - SMTP/Slack/webhook notifications - Encrypted backups with cloud upload
28 lines
497 B
YAML
28 lines
497 B
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: dbbackup-config
|
|
labels:
|
|
app: dbbackup
|
|
data:
|
|
# Database Configuration
|
|
DB_TYPE: "postgres"
|
|
DB_HOST: "postgres.default.svc.cluster.local"
|
|
DB_PORT: "5432"
|
|
DB_USER: "postgres"
|
|
|
|
# Backup Configuration
|
|
BACKUP_DIR: "/backups"
|
|
COMPRESSION: "6"
|
|
|
|
# Retention
|
|
RETENTION_DAYS: "30"
|
|
MIN_BACKUPS: "5"
|
|
|
|
# GFS Retention (enterprise)
|
|
GFS_ENABLED: "false"
|
|
GFS_DAILY: "7"
|
|
GFS_WEEKLY: "4"
|
|
GFS_MONTHLY: "12"
|
|
GFS_YEARLY: "3"
|