From 5819df868a9660002877a10231961a1021591636 Mon Sep 17 00:00:00 2001 From: Remy Moll Date: Mon, 27 Oct 2025 16:23:10 +0100 Subject: [PATCH] update immich --- apps/immich/immich.postgres.yaml | 4 +-- apps/immich/kustomization.yaml | 15 +++----- apps/immich/patch-redis-pvc.yaml | 17 --------- apps/immich/values.yaml | 60 ++++++++++++++++++-------------- default.nix | 1 + 5 files changed, 40 insertions(+), 57 deletions(-) delete mode 100644 apps/immich/patch-redis-pvc.yaml diff --git a/apps/immich/immich.postgres.yaml b/apps/immich/immich.postgres.yaml index 5c02c09..c15bf3d 100644 --- a/apps/immich/immich.postgres.yaml +++ b/apps/immich/immich.postgres.yaml @@ -32,8 +32,8 @@ spec: resources: limits: - cpu: 2 - memory: 1024Mi + cpu: '2' + memory: 1Gi requests: cpu: 50m memory: 512Mi diff --git a/apps/immich/kustomization.yaml b/apps/immich/kustomization.yaml index 1be28c3..ae13d56 100644 --- a/apps/immich/kustomization.yaml +++ b/apps/immich/kustomization.yaml @@ -6,7 +6,7 @@ resources: - pvc.yaml - immich.postgres.yaml - postgres.sealedsecret.yaml - - servicemonitor.yaml + # - servicemonitor.yaml namespace: immich @@ -15,20 +15,13 @@ namespace: immich helmCharts: - name: immich releaseName: immich - version: 0.9.3 + version: 0.10.1 valuesFile: values.yaml repo: https://immich-app.github.io/immich-charts images: - name: ghcr.io/immich-app/immich-machine-learning - newTag: v1.144.1 + newTag: v2.0.1 - name: ghcr.io/immich-app/immich-server - newTag: v1.144.1 - - -patches: - - path: patch-redis-pvc.yaml - target: - kind: StatefulSet - name: immich-redis-master + newTag: v2.0.1 diff --git a/apps/immich/patch-redis-pvc.yaml b/apps/immich/patch-redis-pvc.yaml deleted file mode 100644 index 40c9bdd..0000000 --- a/apps/immich/patch-redis-pvc.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: immich-redis-master -spec: - volumeClaimTemplates: - - apiVersion: v1 - kind: PersistentVolumeClaim - metadata: - name: redis-data - spec: - storageClassName: nfs-client - accessModes: - - ReadWriteMany - resources: - requests: - storage: 2Gi \ No newline at end of file diff --git a/apps/immich/values.yaml b/apps/immich/values.yaml index 096ae5f..db4ef7c 100644 --- a/apps/immich/values.yaml +++ b/apps/immich/values.yaml @@ -4,26 +4,30 @@ # These entries are shared between all the Immich components -env: - REDIS_HOSTNAME: '{{ printf "%s-redis-master" .Release.Name }}' - DB_HOSTNAME: "immich-postgresql-rw" - DB_USERNAME: - valueFrom: - secretKeyRef: - name: postgres-password - key: username - DB_DATABASE_NAME: - valueFrom: - secretKeyRef: - name: postgres-password - key: database - DB_PASSWORD: - valueFrom: - secretKeyRef: - name: postgres-password - key: password - IMMICH_MACHINE_LEARNING_URL: '{{ printf "http://%s-machine-learning:3003" .Release.Name }}' - IMMICH_METRICS: true + +controllers: + main: + containers: + main: + env: + # some non-default vars + DB_HOSTNAME: "immich-postgresql-rw" + DB_USERNAME: + valueFrom: + secretKeyRef: + name: postgres-password + key: username + DB_DATABASE_NAME: + valueFrom: + secretKeyRef: + name: postgres-password + key: database + DB_PASSWORD: + valueFrom: + secretKeyRef: + name: postgres-password + key: password + IMMICH_METRICS: true immich: metrics: @@ -37,13 +41,15 @@ immich: existingClaim: data # Dependencies -redis: +valkey: enabled: true - architecture: standalone - auth: - enabled: false - -# Immich components + persistence: + data: + enabled: true + size: 1Gi + # Optional: Set this to persistentVolumeClaim to keep job queues persistent + type: emptyDir + accessMode: ReadWriteOnce server: enabled: true @@ -56,7 +62,7 @@ machine-learning: persistence: cache: enabled: true - size: 200Gi + size: 10Gi # Optional: Set this to pvc to avoid downloading the ML models every start. type: emptyDir accessMode: ReadWriteMany diff --git a/default.nix b/default.nix index 88f17ad..c4d7755 100644 --- a/default.nix +++ b/default.nix @@ -7,6 +7,7 @@ pkgs.mkShell { kubeseal yq jq + kubernetes-helm-wrapped ]; env = {