From 623965abb5936fa5b83261a67f8e49e774ca066e Mon Sep 17 00:00:00 2001 From: Thomas Blarre Date: Sun, 3 Nov 2024 14:51:25 +0000 Subject: [PATCH] added immich --- .../templates/immich-main-chart.yaml | 26 +++++++++++++++++++ .../templates/immich-requirements-app.yaml | 3 +++ immich-argocd-apps/values.yaml | 3 +++ .../templates/library-pvc.yaml | 11 ++++++++ immich-argocd-requirements/values.yaml | 4 +++ 5 files changed, 47 insertions(+) create mode 100644 immich-argocd-apps/templates/immich-main-chart.yaml create mode 100644 immich-argocd-requirements/templates/library-pvc.yaml diff --git a/immich-argocd-apps/templates/immich-main-chart.yaml b/immich-argocd-apps/templates/immich-main-chart.yaml new file mode 100644 index 0000000..8af80e2 --- /dev/null +++ b/immich-argocd-apps/templates/immich-main-chart.yaml @@ -0,0 +1,26 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: immich-main-chart + namespace: argocd # Ensure this is the namespace where Argo CD is installed + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: default + source: + repoURL: "https://immich-app.github.io/immich-charts" + chart: immich + targetRevision: 0.x + helm: + valuesObject: + destination: + server: https://kubernetes.default.svc # Targeting the current Kubernetes cluster + namespace: {{ .Values.mainNamespace }} + syncPolicy: + automated: + prune: true # Automatically remove resources no longer in the repo + selfHeal: true # Automatically self-heal when drift is detected + syncOptions: + - ApplyOutOfSyncOnly=true + - ServerSideApply=true + - CreateNamespace=true diff --git a/immich-argocd-apps/templates/immich-requirements-app.yaml b/immich-argocd-apps/templates/immich-requirements-app.yaml index c19ffd8..b159199 100644 --- a/immich-argocd-apps/templates/immich-requirements-app.yaml +++ b/immich-argocd-apps/templates/immich-requirements-app.yaml @@ -16,6 +16,9 @@ spec: mainNamespace: {{ .Values.mainNamespace }} tailscaleIngress: hostName: {{ .Values.tailscaleIngress.hostName }} + photosLibrary: + storageClassName: {{ .Values.photosLibrary.storageClassName }} + storageSize: {{ .Values.photosLibrary.storageSize }} destination: server: https://kubernetes.default.svc # Targeting the current Kubernetes cluster namespace: {{ .Values.mainNamespace }} diff --git a/immich-argocd-apps/values.yaml b/immich-argocd-apps/values.yaml index 2718a67..e86bddb 100644 --- a/immich-argocd-apps/values.yaml +++ b/immich-argocd-apps/values.yaml @@ -1,3 +1,6 @@ mainNamespace: immich tailscaleIngress: hostName: "photos" +photosLibrary: + storageClassName: + storageSize: 500Gi diff --git a/immich-argocd-requirements/templates/library-pvc.yaml b/immich-argocd-requirements/templates/library-pvc.yaml new file mode 100644 index 0000000..34085f1 --- /dev/null +++ b/immich-argocd-requirements/templates/library-pvc.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: immich-library +spec: + accessModes: + - ReadWriteOnce + storageClassName: {{ .Values.photosLibrary.storageClassName }} + resources: + requests: + storage: {{ .Values.photosLibrary.storageSize }} diff --git a/immich-argocd-requirements/values.yaml b/immich-argocd-requirements/values.yaml index a4e4015..7d6d7db 100644 --- a/immich-argocd-requirements/values.yaml +++ b/immich-argocd-requirements/values.yaml @@ -7,3 +7,7 @@ immichDb: tailscaleIngress: hostName: "photos" + +photosLibrary: + storageClassName: + storageSize: 500Gi