add cluster
Some checks failed
lint-test-helm / lint-helm (push) Successful in 18s
render-manifests-push / render-manifests-push (push) Failing after 21s
renovate / renovate (push) Successful in 1m16s

This commit is contained in:
2025-12-12 16:31:52 -06:00
parent bb94642ade
commit a8482c5ee5
4 changed files with 161 additions and 3 deletions

View File

@@ -149,3 +149,87 @@ postgres-17-cluster:
# suspend: false
# schedule: "0 8 4 * * SAT"
# backupName: garage-remote
postgres-18-cluster:
mode: recovery
cluster:
image:
repository: ghcr.io/cloudnative-pg/postgresql
tag: 18.1-standard-trixie
storage:
storageClass: local-path
walStorage:
storageClass: local-path
monitoring:
enabled: true
prometheusRule:
enabled: true
resources:
requests:
memory: 1Gi
cpu: 200m
initdb:
postInitSQL:
- CREATE DATABASE "lidarr-main" OWNER "app";
- CREATE DATABASE "lidarr-log" OWNER "app";
recovery:
method: import
objectStore:
destinationPath: s3://postgres-backups/cl01tl/lidarr/lidarr-postgresql-18-cluster
endpointURL: http://garage-main.garage:3900
index: 1
endpointCredentials: lidarr-postgresql-18-cluster-backup-secret
import:
type: "microservice"
databases:
- lidarr-main
- lidarr-log
source:
host: "lidarr2-postgresql-17-cluster-rw"
port: 5432
username: app
database: app
sslMode: "disable"
passwordSecret:
name: "lidarr2-postgresql-17-cluster-app"
key: "password"
backup:
objectStore:
- name: external
destinationPath: s3://postgres-backups-ce540ddf106d186bbddca68a/cl01tl/lidarr/lidarr-postgresql-18-cluster
index: 1
endpointCredentials: lidarr-postgresql-18-cluster-backup-secret
retentionPolicy: "30d"
isWALArchiver: false
- name: garage-local
destinationPath: s3://postgres-backups/cl01tl/lidarr/lidarr-postgresql-18-cluster
index: 1
endpointURL: http://garage-main.garage:3900
endpointCredentials: lidarr-postgresql-18-cluster-backup-secret-garage
endpointCredentialsIncludeRegion: true
retentionPolicy: "3d"
isWALArchiver: true
# - name: garage-remote
# destinationPath: s3://postgres-backups/cl01tl/lidarr/lidarr-postgresql-18-cluster
# index: 1
# endpointURL: https://garage-ps10rp.boreal-beaufort.ts.net:3900
# endpointCredentials: lidarr-postgresql-18-cluster-backup-secret-garage
# retentionPolicy: "30d"
# data:
# compression: bzip2
# jobs: 2
scheduledBackups:
- name: daily-backup
suspend: false
immediate: true
schedule: "0 0 0 * * *"
backupName: external
- name: live-backup
suspend: false
immediate: true
schedule: "0 0 0 * * *"
backupName: garage-local
# - name: weekly-backup
# suspend: false
# immediate: true
# schedule: "0 8 4 * * SAT"
# backupName: garage-remote