From 3104fe6c0248b7da27f8ab8ce53ecca3d5c45d44 Mon Sep 17 00:00:00 2001 From: William P Date: Sat, 7 Jun 2025 20:07:02 -0400 Subject: [PATCH] remove immich --- postgres/config/clusters/immich.yaml | 54 --------------------------- postgres/config/clusters/main.yaml | 9 +---- postgres/config/immich_auth.yaml | 25 ------------- postgres/config/scheduled_backup.yaml | 12 +----- 4 files changed, 2 insertions(+), 98 deletions(-) delete mode 100644 postgres/config/clusters/immich.yaml delete mode 100644 postgres/config/immich_auth.yaml diff --git a/postgres/config/clusters/immich.yaml b/postgres/config/clusters/immich.yaml deleted file mode 100644 index a5a43d2..0000000 --- a/postgres/config/clusters/immich.yaml +++ /dev/null @@ -1,54 +0,0 @@ -apiVersion: postgresql.cnpg.io/v1 -kind: Cluster -metadata: - name: immich -spec: - # At the time of writing, immich is only compatible with pgvecto.rs <0.4. Latest postgres image with that version is 16.5. - imageName: ghcr.io/tensorchord/cloudnative-pgvecto.rs:16.5-v0.3.0@sha256:be3f025d79aa1b747817f478e07e71be43236e14d00d8a9eb3914146245035ba - # A bug was reported in v0.3.0, which does not allow a replicated setup: - # https://github.com/immich-app/immich-charts/issues/149#issuecomment-2559012759 - instances: 1 - - postgresql: - shared_preload_libraries: - - "vectors.so" - - # The "postgres" superuser is needed only for import and it can be deactivated after migration. - enableSuperuserAccess: true - # superuserSecret: immich-superuser - - managed: - roles: - - name: immich - superuser: true - login: true - passwordSecret: - name: immich-auth - - bootstrap: - initdb: - database: immich - owner: immich - # secret: - # name: immich-postgres-user - postInitSQL: - - CREATE EXTENSION IF NOT EXISTS "vectors"; - - CREATE EXTENSION IF NOT EXISTS "cube" CASCADE; - - CREATE EXTENSION IF NOT EXISTS "earthdistance" CASCADE; - - storage: - size: 20Gi - storageClass: rook-ceph-block - resizeInUseVolumes: true - - backup: - barmanObjectStore: - destinationPath: "s3://weyma-talos-shared-pgsql-backup/" - endpointURL: http://10.105.15.20:9000 - s3Credentials: - accessKeyId: - key: s3AccessKey - name: s3-backup-creds - secretAccessKey: - key: s3SecretKey - name: s3-backup-creds \ No newline at end of file diff --git a/postgres/config/clusters/main.yaml b/postgres/config/clusters/main.yaml index 7b3f54a..c12956f 100644 --- a/postgres/config/clusters/main.yaml +++ b/postgres/config/clusters/main.yaml @@ -39,11 +39,4 @@ spec: login: true superuser: true passwordSecret: - name: williamp-auth - - name: immich - ensure: present - comment: Immich - login: true - superuser: false - passwordSecret: - name: immich-auth \ No newline at end of file + name: williamp-auth \ No newline at end of file diff --git a/postgres/config/immich_auth.yaml b/postgres/config/immich_auth.yaml deleted file mode 100644 index 8556e5c..0000000 --- a/postgres/config/immich_auth.yaml +++ /dev/null @@ -1,25 +0,0 @@ -apiVersion: external-secrets.io/v1 -kind: ExternalSecret -metadata: - name: immich-auth -spec: - data: - - remoteRef: - conversionStrategy: Default - decodingStrategy: None - key: cloudnativepg - metadataPolicy: None - property: immich_pw - secretKey: password - refreshInterval: 1h - secretStoreRef: - kind: ClusterSecretStore - name: weyma-vault - target: - template: - data: - username: immich - password: "{{ .password }}" - creationPolicy: Owner - deletionPolicy: Retain - name: immich-auth diff --git a/postgres/config/scheduled_backup.yaml b/postgres/config/scheduled_backup.yaml index 7abbdd3..0d3e411 100644 --- a/postgres/config/scheduled_backup.yaml +++ b/postgres/config/scheduled_backup.yaml @@ -6,14 +6,4 @@ spec: schedule: "0 4 * * *" backupOwnerReference: self cluster: - name: weyma-pgsql ---- -apiVersion: postgresql.cnpg.io/v1 -kind: ScheduledBackup -metadata: - name: immich-postgres-nightly -spec: - schedule: "0 4 * * *" - backupOwnerReference: self - cluster: - name: immich \ No newline at end of file + name: weyma-pgsql \ No newline at end of file