From f0aa69f5b28c1f8fa7db9f42ea0938744c39b7af Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Thu, 2 Oct 2025 23:43:05 -0500 Subject: [PATCH] add fdb --- clusters/cl01tl/management/komodo/Chart.yaml | 4 ++ clusters/cl01tl/management/komodo/values.yaml | 60 ++++++++++++++++++- 2 files changed, 63 insertions(+), 1 deletion(-) diff --git a/clusters/cl01tl/management/komodo/Chart.yaml b/clusters/cl01tl/management/komodo/Chart.yaml index e3e51cb70..8e4d9593d 100644 --- a/clusters/cl01tl/management/komodo/Chart.yaml +++ b/clusters/cl01tl/management/komodo/Chart.yaml @@ -25,5 +25,9 @@ dependencies: alias: postgres-17-cluster version: 6.9.1 repository: oci://harbor.alexlebens.net/helm-charts + - name: postgres-cluster + alias: postgres-17-fdb-cluster + version: 6.9.1 + repository: oci://harbor.alexlebens.net/helm-charts icon: https://cdn.jsdelivr.net/gh/selfhst/icons/png/komodo.png appVersion: v1.17.5 diff --git a/clusters/cl01tl/management/komodo/values.yaml b/clusters/cl01tl/management/komodo/values.yaml index 8da04b0ce..411b65dfb 100644 --- a/clusters/cl01tl/management/komodo/values.yaml +++ b/clusters/cl01tl/management/komodo/values.yaml @@ -89,7 +89,7 @@ komodo: ferretdb: image: repository: ghcr.io/ferretdb/ferretdb - tag: 1.24.2 + tag: 2.5.0 pullPolicy: IfNotPresent env: - name: FERRETDB_POSTGRESQL_URL @@ -157,3 +157,61 @@ postgres-17-cluster: suspend: false schedule: "0 0 0 * * *" backupName: external +postgres-17-fdb-cluster: + nameOverride: komodo-postgresql-17-fdb + mode: import + cluster: + image: + repository: ghcr.io/cloudnative-pg/postgresql + tag: "17-0.106.0-ferretdb-2.5.0" + storage: + storageClass: local-path + walStorage: + storageClass: local-path + postgresUID: 999 + postgresGID: 999 + monitoring: + enabled: true + prometheusRule: + enabled: true + postgresql: + shared_preload_libraries: + - pg_cron + - pg_documentdb_core + - pg_documentdb + parameters: + cron.database_name: 'postgres' + shared_buffers: 128MB + max_slot_wal_keep_size: 2000MB + hot_standby_feedback: "on" + initdb: + postInitSQL: + - 'CREATE EXTENSION IF NOT EXISTS documentdb CASCADE;' + recovery: + method: objectStore + objectStore: + destinationPath: s3://postgres-backups-ce540ddf106d186bbddca68a/cl01tl/komodo/komodo-postgresql-17-cluster + index: 2 + import: + type: "microservice" + databases: + - app + source: + host: komodo-postgresql-17-cluster-rw + port: 5432 + username: app + database: app + passwordSecret: + name: komodo-postgresql-17-cluster-app + key: "password" + backup: + objectStore: + - name: external + destinationPath: s3://postgres-backups-ce540ddf106d186bbddca68a/cl01tl/komodo/komodo-postgresql-17-cluster + index: 3 + retentionPolicy: "3d" + scheduledBackups: + - name: daily-backup + suspend: true + schedule: "0 0 0 * * *" + backupName: external