_persistence.tpl 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. {{- define "immich.persistence" -}}
  2. persistence:
  3. {{/* Data */}}
  4. library:
  5. enabled: true
  6. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.immichStorage.library) | nindent 4 }}
  7. targetSelector:
  8. server:
  9. server:
  10. mountPath: /usr/src/app/upload/library
  11. uploads:
  12. enabled: true
  13. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.immichStorage.uploads) | nindent 4 }}
  14. targetSelector:
  15. server:
  16. server:
  17. mountPath: /usr/src/app/upload/upload
  18. thumbs:
  19. enabled: true
  20. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.immichStorage.thumbs) | nindent 4 }}
  21. targetSelector:
  22. server:
  23. server:
  24. mountPath: /usr/src/app/upload/thumbs
  25. profile:
  26. enabled: true
  27. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.immichStorage.profile) | nindent 4 }}
  28. targetSelector:
  29. server:
  30. server:
  31. mountPath: /usr/src/app/upload/profile
  32. video:
  33. enabled: true
  34. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.immichStorage.video) | nindent 4 }}
  35. targetSelector:
  36. server:
  37. server:
  38. mountPath: /usr/src/app/upload/encoded-video
  39. {{- range $idx, $storage := .Values.immichStorage.additionalStorages }}
  40. {{ printf "immich-%v:" (int $idx) }}
  41. enabled: true
  42. {{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
  43. targetSelector:
  44. server:
  45. server:
  46. mountPath: {{ $storage.mountPath }}
  47. {{- end }}
  48. {{- if .Values.immichConfig.enableML }}
  49. mlcache:
  50. enabled: true
  51. type: emptyDir
  52. targetSelector:
  53. machinelearning:
  54. machinelearning:
  55. mountPath: /mlcache
  56. {{- end }}
  57. redis:
  58. enabled: true
  59. type: emptyDir
  60. targetSelector:
  61. redis:
  62. redis:
  63. mountPath: /bitnami/redis/data
  64. tmp:
  65. enabled: true
  66. type: emptyDir
  67. targetSelector:
  68. redis:
  69. redis:
  70. mountPath: /tmp
  71. {{/* Database */}}
  72. {{- include "ix.v1.common.app.postgresPersistence"
  73. (dict "pgData" .Values.immichStorage.pgData
  74. "pgBackup" .Values.immichStorage.pgBackup
  75. ) | nindent 2 }}
  76. {{- end -}}