scale
All checks were successful
lint-test-helm / helm-lint (push) Successful in 12s
renovate / renovate (push) Successful in 1m53s

This commit is contained in:
2025-10-03 23:24:37 -05:00
parent f62ab4fe42
commit ffde325783
2 changed files with 16 additions and 65 deletions

View File

@@ -24,40 +24,10 @@ spec:
apiVersion: external-secrets.io/v1 apiVersion: external-secrets.io/v1
kind: ExternalSecret kind: ExternalSecret
metadata: metadata:
name: immich-postgresql-16-cluster-backup-secret name: immich-postgresql-17-cluster-backup-secret
namespace: {{ .Release.Namespace }} namespace: {{ .Release.Namespace }}
labels: labels:
app.kubernetes.io/name: immich-postgresql-16-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:
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/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/part-of: {{ .Release.Name }} app.kubernetes.io/part-of: {{ .Release.Name }}
spec: spec:

View File

@@ -2,7 +2,7 @@ immich:
controllers: controllers:
main: main:
type: deployment type: deployment
replicas: 0 replicas: 1
strategy: Recreate strategy: Recreate
revisionHistoryLimit: 3 revisionHistoryLimit: 3
containers: containers:
@@ -92,7 +92,7 @@ immich:
memory: 512Mi memory: 512Mi
machine-learning: machine-learning:
type: deployment type: deployment
replicas: 0 replicas: 1
strategy: Recreate strategy: Recreate
revisionHistoryLimit: 3 revisionHistoryLimit: 3
containers: containers:
@@ -269,37 +269,18 @@ postgres-17-cluster:
- CREATE EXTENSION IF NOT EXISTS "cube" CASCADE; - CREATE EXTENSION IF NOT EXISTS "cube" CASCADE;
- CREATE EXTENSION IF NOT EXISTS "earthdistance" CASCADE; - CREATE EXTENSION IF NOT EXISTS "earthdistance" CASCADE;
recovery: recovery:
method: import method: objectStore
objectStore: objectStore:
destinationPath: s3://postgres-backups-ce540ddf106d186bbddca68a/cl01tl/immich/immich-postgresql-17-cluster destinationPath: s3://postgres-backups-ce540ddf106d186bbddca68a/cl01tl/immich/immich-postgresql-17-cluster
index: 1 index: 1
import: backup:
type: "microservice" objectStore:
databases: - name: external
- app destinationPath: s3://postgres-backups-ce540ddf106d186bbddca68a/cl01tl/immich/immich-postgresql-17-cluster
postImportApplicationSQL: index: 1
- CREATE EXTENSION IF NOT EXISTS "vector"; retentionPolicy: "3d"
- CREATE EXTENSION IF NOT EXISTS "vchord" CASCADE; scheduledBackups:
- CREATE EXTENSION IF NOT EXISTS "cube" CASCADE; - name: daily-backup
- CREATE EXTENSION IF NOT EXISTS "earthdistance" CASCADE; suspend: true
source: schedule: "0 0 0 * * *"
host: immich-postgresql-16-b-cluster-rw backupName: external
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