From 47473f95f289d452201758f3031ceb6935dc3bdd Mon Sep 17 00:00:00 2001 From: gitea-bot Date: Fri, 12 Dec 2025 03:48:28 +0000 Subject: [PATCH] chore: Update manifests after change --- .../Cluster-immich-postgresql-18-cluster.yaml | 41 ++++++++----------- .../immich/Deployment-immich-main.yaml | 10 ++--- ...ctStore-immich-postgresql-18-recovery.yaml | 29 +++++++++++++ 3 files changed, 52 insertions(+), 28 deletions(-) create mode 100644 clusters/cl01tl/manifests/immich/ObjectStore-immich-postgresql-18-recovery.yaml diff --git a/clusters/cl01tl/manifests/immich/Cluster-immich-postgresql-18-cluster.yaml b/clusters/cl01tl/manifests/immich/Cluster-immich-postgresql-18-cluster.yaml index 88443f227..9504a8208 100644 --- a/clusters/cl01tl/manifests/immich/Cluster-immich-postgresql-18-cluster.yaml +++ b/clusters/cl01tl/manifests/immich/Cluster-immich-postgresql-18-cluster.yaml @@ -29,6 +29,13 @@ spec: parameters: barmanObjectName: "immich-postgresql-18-garage-local-backup" serverName: "immich-postgresql-18-backup-1" + externalClusters: + - name: recovery + plugin: + name: barman-cloud.cloudnative-pg.io + parameters: + barmanObjectName: "immich-postgresql-18-recovery" + serverName: immich-postgresql-18-backup-1 storage: size: 10Gi storageClass: local-path @@ -60,27 +67,15 @@ spec: enablePodMonitor: true disableDefaultQueries: false bootstrap: - initdb: - postInitSQL: - - CREATE EXTENSION IF NOT EXISTS "vector"; - - CREATE EXTENSION IF NOT EXISTS "vchord" CASCADE; - - CREATE EXTENSION IF NOT EXISTS "cube" CASCADE; - - CREATE EXTENSION IF NOT EXISTS "earthdistance" CASCADE; - import: - source: - externalCluster: importSource - type: microservice - databases: - - app - schemaOnly: false + recovery: + database: app + source: immich-postgresql-18-backup-1 externalClusters: - - name: importSource - connectionParameters: - host: "immich-postgresql-17-cluster-rw" - port: "5432" - user: "app" - dbname: "app" - sslmode: "disable" - password: - name: immich-postgresql-17-cluster-app - key: password + - name: immich-postgresql-18-backup-1 + plugin: + name: barman-cloud.cloudnative-pg.io + enabled: true + isWALArchiver: false + parameters: + barmanObjectName: "immich-postgresql-18-recovery" + serverName: immich-postgresql-18-backup-1 diff --git a/clusters/cl01tl/manifests/immich/Deployment-immich-main.yaml b/clusters/cl01tl/manifests/immich/Deployment-immich-main.yaml index b7f28f3d0..d1eb21f89 100644 --- a/clusters/cl01tl/manifests/immich/Deployment-immich-main.yaml +++ b/clusters/cl01tl/manifests/immich/Deployment-immich-main.yaml @@ -51,27 +51,27 @@ spec: valueFrom: secretKeyRef: key: host - name: immich-postgresql-17-cluster-app + name: immich-postgresql-18-cluster-app - name: DB_DATABASE_NAME valueFrom: secretKeyRef: key: dbname - name: immich-postgresql-17-cluster-app + name: immich-postgresql-18-cluster-app - name: DB_PORT valueFrom: secretKeyRef: key: port - name: immich-postgresql-17-cluster-app + name: immich-postgresql-18-cluster-app - name: DB_USERNAME valueFrom: secretKeyRef: key: user - name: immich-postgresql-17-cluster-app + name: immich-postgresql-18-cluster-app - name: DB_PASSWORD valueFrom: secretKeyRef: key: password - name: immich-postgresql-17-cluster-app + name: immich-postgresql-18-cluster-app image: ghcr.io/immich-app/immich-server:v2.3.1 imagePullPolicy: IfNotPresent livenessProbe: diff --git a/clusters/cl01tl/manifests/immich/ObjectStore-immich-postgresql-18-recovery.yaml b/clusters/cl01tl/manifests/immich/ObjectStore-immich-postgresql-18-recovery.yaml new file mode 100644 index 000000000..12fa4ef93 --- /dev/null +++ b/clusters/cl01tl/manifests/immich/ObjectStore-immich-postgresql-18-recovery.yaml @@ -0,0 +1,29 @@ +apiVersion: barmancloud.cnpg.io/v1 +kind: ObjectStore +metadata: + name: "immich-postgresql-18-recovery" + namespace: immich + labels: + helm.sh/chart: postgres-18-cluster-6.16.1 + app.kubernetes.io/name: immich-postgresql-18 + app.kubernetes.io/instance: immich + app.kubernetes.io/part-of: immich + app.kubernetes.io/version: "6.16.1" + app.kubernetes.io/managed-by: Helm +spec: + configuration: + destinationPath: s3://postgres-backups/cl01tl/immich/immich-postgresql-18-cluster + endpointURL: http://garage-main.garage:3900 + wal: + compression: snappy + maxParallel: 1 + data: + compression: snappy + jobs: 1 + s3Credentials: + accessKeyId: + name: immich-postgresql-18-cluster-backup-secret-garage + key: ACCESS_KEY_ID + secretAccessKey: + name: immich-postgresql-18-cluster-backup-secret-garage + key: ACCESS_SECRET_KEY