immich-app / immich-charts

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

how to set cache to pvc #48

Closed pOH7 closed 9 months ago

pOH7 commented 9 months ago
      persistence:
        geodata-cache:
          enabled: true
          size: 1Gi
          # Optional: Set this to pvc to avoid downloading the geodata every start.
          type: emptyDir
          accessMode: ReadWriteMany
          # storageClass: your-class

I use kubernetes, it showed "Set this to pvc to avoid downloading the geodata every start.", but I don't know how to, and there is no example

bo0tzz commented 9 months ago

If you just set it to type: pvc in your values, it will create a new pvc using your default storageClass. You can set storageClass to manually choose one. Alternatively you can define a pvc yourself and then use that with

persistence:
  geodata-cache:
    enabled: true
    existingClaim: your-pvc
pOH7 commented 9 months ago

If you just set it to type: pvc in your values, it will create a new pvc using your default storageClass. You can set storageClass to manually choose one. Alternatively you can define a pvc yourself and then use that with

persistence:
  geodata-cache:
    enabled: true
    existingClaim: your-pvc

thanks, I have tried both, first solution (change type to pvc) works, and the second should be

persistence:
  geodata-cache:
    enabled: true
    type: pvc
    existingClaim: your-pvc