ImmichI
Immich7mo ago
xethlyx

Separating library locations in the Helm Chart

I am looking to separate the library mounts in the helm chart, e.g. having ./upload/encoded-video and ./upload/thumbs on a separate volume to reduce the amount that I pay monthly for backups - this volume would be excluded from backups. Here is my current values:

controller:
  strategy: Recreate

env:
  DB_HOSTNAME: immich-postgres-rw
  DB_USERNAME: immich
  DB_DATABASE_NAME: immich

image:
  # renovate_repo: ghcr.io/immich-app/immich-server
  tag: v1.134.0

immich:
  metrics:
    enabled: true
  persistence:
    library:
      existingClaim: immich-data

server:
  persistence:
    cache-thumbs:
      enabled: true
      existingClaim: immich-cache
      mountPath: /usr/src/app/upload/thumbs
    cache-encoded-video:
      enabled: true
      existingClaim: immich-cache
      mountPath: /usr/src/app/upload/encoded-video

postgresql:
  enabled: false

redis:
  enabled: true
  master:
    persistence:
      enabled: false
  replica:
    persistence:
      enabled: false


This doesn't work because Longhorn hates having duplicate volumes attached to the pod (cache-thumbs and cache-encoded-video both point to the same underlying PVC) - the idiomatic way to do this would be to create multiple mounts to the same volume, rather than duplicating the volume. It looks like there's a way to do this in the most recent common chart, but is there a way to do this with the current Helm chart?
Was this page helpful?