From 664268dbfea39ec1fe6c01ea8525e4e1c2dd94b4 Mon Sep 17 00:00:00 2001 From: Lumpiasty Date: Sat, 21 Feb 2026 15:14:34 +0100 Subject: [PATCH] clean up old library volume, postgres and redis --- apps/immich/kustomization.yaml | 1 - apps/immich/postgres-cluster.yaml | 46 ------------------------------- apps/immich/redis.yaml | 29 ------------------- apps/immich/volume.yaml | 13 --------- 4 files changed, 89 deletions(-) delete mode 100644 apps/immich/volume.yaml diff --git a/apps/immich/kustomization.yaml b/apps/immich/kustomization.yaml index 8dc28a4..868187e 100644 --- a/apps/immich/kustomization.yaml +++ b/apps/immich/kustomization.yaml @@ -2,7 +2,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - namespace.yaml - - volume.yaml - valkey-volume.yaml - redis.yaml - postgres-password.yaml diff --git a/apps/immich/postgres-cluster.yaml b/apps/immich/postgres-cluster.yaml index 59512cc..0c5b5c8 100644 --- a/apps/immich/postgres-cluster.yaml +++ b/apps/immich/postgres-cluster.yaml @@ -1,52 +1,6 @@ --- apiVersion: postgresql.cnpg.io/v1 kind: Cluster -metadata: - name: immich-db - namespace: immich -spec: - imageName: ghcr.io/tensorchord/cloudnative-vectorchord:14-0.4.3 - - instances: 1 - - storage: - size: 10Gi - storageClass: mayastor-single-hdd - bootstrap: - initdb: - # Defaults of immich chart - database: immich - owner: immich - - # We need to create custom role because default one does not allow to set up - # vectorchord extension - managed: - roles: - - name: immich - createdb: true - login: true - superuser: true - # We need to manually create secret - # https://github.com/cloudnative-pg/cloudnative-pg/issues/3788 - passwordSecret: - name: immich-db-immich - - backup: - volumeSnapshot: - className: csi-mayastor-snapshotclass ---- -apiVersion: postgresql.cnpg.io/v1 -kind: Backup -metadata: - name: backup-migration - namespace: immich -spec: - method: volumeSnapshot - cluster: - name: immich-db ---- -apiVersion: postgresql.cnpg.io/v1 -kind: Cluster metadata: name: immich-db-lvmhdd namespace: immich diff --git a/apps/immich/redis.yaml b/apps/immich/redis.yaml index bbf0aab..b9106b4 100644 --- a/apps/immich/redis.yaml +++ b/apps/immich/redis.yaml @@ -1,35 +1,6 @@ --- apiVersion: source.toolkit.fluxcd.io/v1 kind: HelmRepository -metadata: - name: bitnami - namespace: immich -spec: - interval: 24h - type: "oci" - url: oci://registry-1.docker.io/bitnamicharts/ ---- -apiVersion: helm.toolkit.fluxcd.io/v2 -kind: HelmRelease -metadata: - name: redis - namespace: immich -spec: - interval: 30m - chart: - spec: - chart: redis - version: 24.1.3 - sourceRef: - kind: HelmRepository - name: bitnami - values: - global: - defaultStorageClass: mayastor-single-hdd - architecture: standalone ---- -apiVersion: source.toolkit.fluxcd.io/v1 -kind: HelmRepository metadata: name: valkey namespace: immich diff --git a/apps/immich/volume.yaml b/apps/immich/volume.yaml deleted file mode 100644 index a154753..0000000 --- a/apps/immich/volume.yaml +++ /dev/null @@ -1,13 +0,0 @@ ---- -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: library - namespace: immich -spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 150Gi - storageClassName: mayastor-single-hdd