From 983a193df46c634fe4f60728ea8c82c7ceccbf48 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Tue, 19 Aug 2025 23:57:31 +0200 Subject: [PATCH] Fix immich --- apps/argocd.yaml | 1 + apps/immich.yaml | 30 +++--------------------------- apps/immich/kustomization.yaml | 12 ++++++++++++ apps/immich/pvc.yaml | 30 ++++++++++++++++++++++++++++++ apps/immich/values.yaml | 25 +++++++++++++++++++++++++ 5 files changed, 71 insertions(+), 27 deletions(-) create mode 100644 apps/immich/kustomization.yaml create mode 100644 apps/immich/pvc.yaml create mode 100644 apps/immich/values.yaml diff --git a/apps/argocd.yaml b/apps/argocd.yaml index d4220c7..261a029 100644 --- a/apps/argocd.yaml +++ b/apps/argocd.yaml @@ -34,6 +34,7 @@ spec: tls: true configs: cm: + kustomize.buildOptions: --enable-helm dex.config: | connectors: - id: authentik diff --git a/apps/immich.yaml b/apps/immich.yaml index 81041c2..73de546 100644 --- a/apps/immich.yaml +++ b/apps/immich.yaml @@ -15,30 +15,6 @@ spec: syncOptions: - CreateNamespace=true source: - repoURL: ghcr.io/immich-app/immich-charts/immich - chart: immich - targetRevision: 0.9.3 - helm: - valueObject: - image: - tag: v1.137.3 - redis: - enabled: true - server: - ingress: - main: - enabled: true - annotations: - cert-manager.io/cluster-issuer: letsencrypt - acme.cert-manager.io/http01-edit-in-place: "true" - # proxy-body-size is set to 0 to remove the body limit on file uploads - nginx.ingress.kubernetes.io/proxy-body-size: "0" - hosts: - - host: immich.sdg.moe - paths: - - path: "/" - tls: - - secretName: immich-tls - hosts: - - immich.sdg.moe - + repoURL: https://github.com/zoriya/snow + targetRevision: HEAD + path: apps/immich diff --git a/apps/immich/kustomization.yaml b/apps/immich/kustomization.yaml new file mode 100644 index 0000000..78c303f --- /dev/null +++ b/apps/immich/kustomization.yaml @@ -0,0 +1,12 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +helmCharts: +- repo: oci://ghcr.io/immich-app/immich-charts + name: immich + releaseName: immich + version: 0.9.3 + valuesFile: values.yaml + +resources: +- pvc.yaml diff --git a/apps/immich/pvc.yaml b/apps/immich/pvc.yaml new file mode 100644 index 0000000..d85fbdf --- /dev/null +++ b/apps/immich/pvc.yaml @@ -0,0 +1,30 @@ +apiVersion: v1 +kind: PersistentVolume +metadata: + name: immich-pictures +spec: + accessModes: + - ReadWriteOnce + capacity: + storage: 200Ti + csi: + driver: zfs.csi.openebs.io + fsType: zfs + volumeAttributes: + openebs.io/poolname: ocean + volumeHandle: "pictures" + persistentVolumeReclaimPolicy: Retain +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: pictures +spec: + storageClassName: "" + volumeName: transmission-pictures + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 200Ti + diff --git a/apps/immich/values.yaml b/apps/immich/values.yaml new file mode 100644 index 0000000..1a40bc2 --- /dev/null +++ b/apps/immich/values.yaml @@ -0,0 +1,25 @@ +image: + tag: v1.137.3 +immich: + persistence: + library: + existingClaim: pictures +redis: + enabled: true +server: + ingress: + main: + enabled: true + annotations: + cert-manager.io/cluster-issuer: letsencrypt + acme.cert-manager.io/http01-edit-in-place: "true" + # proxy-body-size is set to 0 to remove the body limit on file uploads + nginx.ingress.kubernetes.io/proxy-body-size: "0" + hosts: + - host: immich.sdg.moe + paths: + - path: "/" + tls: + - secretName: immich-tls + hosts: + - immich.sdg.moe