From ac6a47a6a94e2c9275178e6481b268d4c734f970 Mon Sep 17 00:00:00 2001 From: Ruben Hensen Date: Sat, 14 Dec 2024 19:59:56 +0100 Subject: [PATCH] Change version and helm values immich --- immich/helm-immich.yaml | 109 +++++++++++++++++++++++++++++++++++++--- 1 file changed, 102 insertions(+), 7 deletions(-) diff --git a/immich/helm-immich.yaml b/immich/helm-immich.yaml index f0453e7..0834cc7 100644 --- a/immich/helm-immich.yaml +++ b/immich/helm-immich.yaml @@ -17,13 +17,108 @@ spec: - chart: immich/immich repoURL: https://immich-app.github.io/immich-charts targetRevision: v1.119.0 # Replace with the Longhorn version you'd like to install or upgrade to - # helm: - # values: | - # preUpgradeChecker: - # jobEnabled: false - # parameters: - # - name: csi.kubeletRootDir - # value: "/var/snap/microk8s/common/var/lib/kubelet" + helm: + values: | + env: + REDIS_HOSTNAME: '{{ printf "%s-redis-master" .Release.Name }}' + DB_HOSTNAME: "{{ .Release.Name }}-postgresql" + DB_USERNAME: "{{ .Values.postgresql.global.postgresql.auth.username }}" + DB_DATABASE_NAME: "{{ .Values.postgresql.global.postgresql.auth.database }}" + # -- You should provide your own secret outside of this helm-chart and use `postgresql.global.postgresql.auth.existingSecret` to provide credentials to the postgresql instance + DB_PASSWORD: "{{ .Values.postgresql.global.postgresql.auth.password }}" + IMMICH_MACHINE_LEARNING_URL: '{{ printf "http://%s-machine-learning:3003" .Release.Name }}' + + image: + tag: v1.119.0 + + immich: + metrics: + # Enabling this will create the service monitors needed to monitor immich with the prometheus operator + enabled: true + persistence: + # Main data store for all photos shared between different components. + library: + # Automatically creating the library volume is not supported by this chart + # You have to specify an existing PVC to use + existingClaim: + # configuration is immich-config.json converted to yaml + # ref: https://immich.app/docs/install/config-file/ + # + configuration: {} + # trash: + # enabled: false + # days: 30 + # storageTemplate: + # enabled: true + # template: "{{y}}/{{y}}-{{MM}}-{{dd}}/{{filename}}" + + # Dependencies + + postgresql: + enabled: false + image: + repository: tensorchord/pgvecto-rs + tag: pg14-v0.2.0 + global: + postgresql: + auth: + username: immich + database: immich + password: immich + primary: + containerSecurityContext: + readOnlyRootFilesystem: false + initdb: + scripts: + create-extensions.sql: | + CREATE EXTENSION cube; + CREATE EXTENSION earthdistance; + CREATE EXTENSION vectors; + + redis: + enabled: false + architecture: standalone + auth: + enabled: false + + # Immich components + + server: + enabled: true + image: + repository: ghcr.io/immich-app/immich-server + pullPolicy: IfNotPresent + ingress: + main: + enabled: true + annotations: + # 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.hensen.io + paths: + - path: "/" + tls: + - secretName: letsencrypt-prod + hosts: + - immich.hensen.io + + + machine-learning: + enabled: true + image: + repository: ghcr.io/immich-app/immich-machine-learning + pullPolicy: IfNotPresent + env: + TRANSFORMERS_CACHE: /cache + persistence: + cache: + enabled: true + size: 10Gi + # Optional: Set this to pvc to avoid downloading the ML models every start. + type: emptyDir + accessMode: ReadWriteMany + # storageClass: your-class destination: server: https://kubernetes.default.svc namespace: immich \ No newline at end of file