immich-app / immich-charts

Helm chart implementation of Immich
https://immich.app
GNU Affero General Public License v3.0
107 stars 45 forks source link

How to configure persistence volume for postgres ? #56

Closed Emilien-M closed 8 months ago

Emilien-M commented 8 months ago

Hi,

I would like the intgrate postgres don't use the default storage class for data. How can i configure the release to do that ?

I try this, but the PVC continue tu use default storage class :

postgresql:
  enabled: true
  persistence:
    data:
      enabled: true
      size: 8Gi
      storageClass: my-custom-storage-class
      accessMode: ReadWriteMany
bo0tzz commented 8 months ago

This chart uses the bitnami postgres chart as a dependency. You can configure the PVC like so:

postgresql:
  enabled: true
  primary:
    persistence:
      size: 8Gi
      storageClass: my-custom-storage-class

Note that you should not set accessMode ReadWriteMany for a database volume, as postgres does not support multiple instances using the same data volume.