diff --git a/clusters/cl01tl/applications/immich/templates/external-secrets.yaml b/clusters/cl01tl/applications/immich/templates/external-secrets.yaml index 5c9a0e713..436402fc1 100644 --- a/clusters/cl01tl/applications/immich/templates/external-secrets.yaml +++ b/clusters/cl01tl/applications/immich/templates/external-secrets.yaml @@ -24,40 +24,10 @@ spec: apiVersion: external-secrets.io/v1 kind: ExternalSecret metadata: - name: immich-postgresql-16-cluster-backup-secret + name: immich-postgresql-17-cluster-backup-secret namespace: {{ .Release.Namespace }} labels: - app.kubernetes.io/name: immich-postgresql-16-cluster-backup-secret - app.kubernetes.io/instance: {{ .Release.Name }} - app.kubernetes.io/part-of: {{ .Release.Name }} -spec: - secretStoreRef: - kind: ClusterSecretStore - name: vault - data: - - secretKey: ACCESS_KEY_ID - remoteRef: - conversionStrategy: Default - decodingStrategy: None - key: /digital-ocean/home-infra/postgres-backups - metadataPolicy: None - property: access - - secretKey: ACCESS_SECRET_KEY - remoteRef: - conversionStrategy: Default - decodingStrategy: None - key: /digital-ocean/home-infra/postgres-backups - metadataPolicy: None - property: secret - ---- -apiVersion: external-secrets.io/v1 -kind: ExternalSecret -metadata: - name: immich-postgresql-16-b-cluster-backup-secret - namespace: {{ .Release.Namespace }} - labels: - app.kubernetes.io/name: immich-postgresql-16-b-cluster-backup-secret + app.kubernetes.io/name: immich-postgresql-17-cluster-backup-secret app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/part-of: {{ .Release.Name }} spec: diff --git a/clusters/cl01tl/applications/immich/values.yaml b/clusters/cl01tl/applications/immich/values.yaml index e291fbbc4..e68af677c 100644 --- a/clusters/cl01tl/applications/immich/values.yaml +++ b/clusters/cl01tl/applications/immich/values.yaml @@ -2,7 +2,7 @@ immich: controllers: main: type: deployment - replicas: 0 + replicas: 1 strategy: Recreate revisionHistoryLimit: 3 containers: @@ -92,7 +92,7 @@ immich: memory: 512Mi machine-learning: type: deployment - replicas: 0 + replicas: 1 strategy: Recreate revisionHistoryLimit: 3 containers: @@ -269,37 +269,18 @@ postgres-17-cluster: - CREATE EXTENSION IF NOT EXISTS "cube" CASCADE; - CREATE EXTENSION IF NOT EXISTS "earthdistance" CASCADE; recovery: - method: import + method: objectStore objectStore: destinationPath: s3://postgres-backups-ce540ddf106d186bbddca68a/cl01tl/immich/immich-postgresql-17-cluster index: 1 - import: - type: "microservice" - databases: - - app - postImportApplicationSQL: - - 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; - source: - host: immich-postgresql-16-b-cluster-rw - port: 5432 - username: postgres - database: postgres - sslMode: disable - passwordSecret: - name: immich-postgresql-16-b-cluster-superuser - key: password - - # backup: - # objectStore: - # - name: external - # destinationPath: s3://postgres-backups-ce540ddf106d186bbddca68a/cl01tl/immich/immich-postgresql-17-cluster - # index: 1 - # retentionPolicy: "3d" - # scheduledBackups: - # - name: daily-backup - # suspend: true - # schedule: "0 0 0 * * *" - # backupName: external + backup: + objectStore: + - name: external + destinationPath: s3://postgres-backups-ce540ddf106d186bbddca68a/cl01tl/immich/immich-postgresql-17-cluster + index: 1 + retentionPolicy: "3d" + scheduledBackups: + - name: daily-backup + suspend: true + schedule: "0 0 0 * * *" + backupName: external