chore: Update manifests after change

This commit is contained in:
2025-12-12 03:48:28 +00:00
parent c2e13b4b48
commit 47473f95f2
3 changed files with 52 additions and 28 deletions

View File

@@ -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

View File

@@ -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:

View File

@@ -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