From c94746dcf9dfa1251dae6c9868f68e0064aeeae7 Mon Sep 17 00:00:00 2001 From: paulfantom Date: Mon, 6 May 2024 17:20:46 +0200 Subject: [PATCH] apps/photos: mount old photo library --- apps/photos/kustomization.yaml | 2 ++ apps/photos/library-old-pv.yaml | 16 ++++++++++++++++ apps/photos/library-old-pvc.yaml | 12 ++++++++++++ apps/photos/values.yaml | 10 ++++++++++ 4 files changed, 40 insertions(+) create mode 100644 apps/photos/library-old-pv.yaml create mode 100644 apps/photos/library-old-pvc.yaml diff --git a/apps/photos/kustomization.yaml b/apps/photos/kustomization.yaml index 9fd1265c8..139741599 100644 --- a/apps/photos/kustomization.yaml +++ b/apps/photos/kustomization.yaml @@ -5,6 +5,8 @@ resources: - namespace.yaml - repository.yaml - release.yaml + - library-old-pv.yaml + - library-old-pvc.yaml - library-pv.yaml - library-pvc.yaml - postgres-backup.yaml diff --git a/apps/photos/library-old-pv.yaml b/apps/photos/library-old-pv.yaml new file mode 100644 index 000000000..6c2a020f4 --- /dev/null +++ b/apps/photos/library-old-pv.yaml @@ -0,0 +1,16 @@ +# This file is listed here for future use. It is not used in the current, evaluation setup. +apiVersion: v1 +kind: PersistentVolume +metadata: + name: library-old +spec: + accessModes: + - ReadWriteMany + capacity: + storage: 500Gi + nfs: + path: /Multimedia + server: 192.168.2.29 + persistentVolumeReclaimPolicy: Retain + storageClassName: manual + volumeMode: Filesystem diff --git a/apps/photos/library-old-pvc.yaml b/apps/photos/library-old-pvc.yaml new file mode 100644 index 000000000..166100888 --- /dev/null +++ b/apps/photos/library-old-pvc.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: library-old +spec: + accessModes: + - ReadWriteMany + resources: + requests: + storage: 4000Gi + storageClassName: manual + volumeName: library-old diff --git a/apps/photos/values.yaml b/apps/photos/values.yaml index b6a7e4c86..d6e8db2b0 100644 --- a/apps/photos/values.yaml +++ b/apps/photos/values.yaml @@ -83,6 +83,11 @@ server: - secretName: immich-tls hosts: - photos.krupa.net.pl + persistence: + old: + enabled: true + mountPath: /old + existingClaim: library-old microservices: enabled: true @@ -94,6 +99,11 @@ microservices: memory: 560Mi limits: memory: 3Gi + persistence: + old: + enabled: true + mountPath: /old + existingClaim: library-old machine-learning: enabled: true