--- # yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/helmrelease-helm-v2beta1.json apiVersion: helm.toolkit.fluxcd.io/v2beta1 kind: HelmRelease metadata: name: &app immich-server namespace: default spec: interval: 30m chart: spec: chart: app-template version: 2.3.0 interval: 30m sourceRef: kind: HelmRepository name: bjw-s namespace: flux-system maxHistory: 2 install: createNamespace: true remediation: retries: 3 upgrade: cleanupOnFail: true remediation: retries: 3 uninstall: keepHistory: false dependsOn: - name: immich-typesense - name: immich-redis values: defaultPodOptions: enableServiceLinks: false securityContext: runAsUser: 568 runAsGroup: 568 fsGroup: 568 fsGroupChangePolicy: OnRootMismatch topologySpreadConstraints: - maxSkew: 1 topologyKey: kubernetes.io/hostname whenUnsatisfiable: DoNotSchedule labelSelector: matchLabels: app.kubernetes.io/name: *app controllers: main: strategy: RollingUpdate annotations: reloader.stakater.com/auto: "true" configmap.reloader.stakater.com/reload: &configMap immich-configmap secret.reloader.stakater.com/reload: &secret immich-secret initContainers: init-db: image: repository: ghcr.io/auricom/postgres-init tag: 15.5@sha256:5db5b8f4f6aa4c8c58672ece5d25dd6b995c4ff8e219966a93adb9aa48a6cf51 pullPolicy: IfNotPresent envFrom: &envFrom - configMapRef: name: *configMap - secretRef: name: *secret containers: main: image: repository: ghcr.io/immich-app/immich-server tag: v1.89.0 args: ["start-server.sh"] envFrom: *envFrom env: LOG_LEVEL: log # IMMICH_CONFIG_FILE: /config/immich-config.json IMMICH_MEDIA_LOCATION: &mediaLocation /usr/src/app/upload SERVER_PORT: &port 3001 resources: requests: cpu: 100m memory: 250Mi service: main: ports: http: port: *port ingress: main: enabled: true className: nginx annotations: external-dns.alpha.kubernetes.io/enabled: "true" external-dns.alpha.kubernetes.io/target: services.${SECRET_DOMAIN}. hajimari.io/appName: Immich nignx.ingress.kubernetes.io/force-ssl-redirect: "true" nginx.ingress.kubernetes.io/proxy-body-size: "0" nginx.ingress.kubernetes.io/upstream-hash-by: "$client_ip" hosts: - host: &host photos.${SECRET_CLUSTER_DOMAIN} paths: - path: / service: name: main port: http tls: - hosts: - *host persistence: config: enabled: true type: configMap name: immich-server-config globalMounts: - path: /config library: existingClaim: immich-nfs globalMounts: - path: *mediaLocation geocoding-dump: type: emptyDir globalMounts: - path: /usr/src/app/.reverse-geocoding-dump transformers-cache: type: emptyDir globalMounts: - path: /usr/src/app/.transformers_cache