_persistence.tpl 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. microservices:
  12. microservices:
  13. mountPath: /usr/src/app/upload/library
  14. uploads:
  15. enabled: true
  16. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.immichStorage.uploads) | nindent 4 }}
  17. targetSelector:
  18. server:
  19. server:
  20. mountPath: /usr/src/app/upload/upload
  21. microservices:
  22. microservices:
  23. mountPath: /usr/src/app/upload/upload
  24. thumbs:
  25. enabled: true
  26. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.immichStorage.thumbs) | nindent 4 }}
  27. targetSelector:
  28. server:
  29. server:
  30. mountPath: /usr/src/app/upload/thumbs
  31. microservices:
  32. microservices:
  33. mountPath: /usr/src/app/upload/thumbs
  34. profile:
  35. enabled: true
  36. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.immichStorage.profile) | nindent 4 }}
  37. targetSelector:
  38. server:
  39. server:
  40. mountPath: /usr/src/app/upload/profile
  41. microservices:
  42. microservices:
  43. mountPath: /usr/src/app/upload/profile
  44. video:
  45. enabled: true
  46. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.immichStorage.video) | nindent 4 }}
  47. targetSelector:
  48. server:
  49. server:
  50. mountPath: /usr/src/app/upload/encoded-video
  51. microservices:
  52. microservices:
  53. mountPath: /usr/src/app/upload/encoded-video
  54. {{- range $idx, $storage := .Values.immichStorage.additionalStorages }}
  55. {{ printf "immich-%v:" (int $idx) }}
  56. enabled: true
  57. {{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
  58. targetSelector:
  59. server:
  60. server:
  61. mountPath: {{ $storage.mountPath }}
  62. microservices:
  63. microservices:
  64. mountPath: {{ $storage.mountPath }}
  65. {{- end }}
  66. {{/* Caches */}}
  67. microcache:
  68. enabled: true
  69. type: emptyDir
  70. targetSelector:
  71. microservices:
  72. microservices:
  73. mountPath: /microcache
  74. {{- if .Values.immichConfig.enableTypesense }}
  75. typsense:
  76. enabled: true
  77. type: emptyDir
  78. targetSelector:
  79. typesense:
  80. typesense:
  81. mountPath: /typesense-data
  82. {{- end -}}
  83. {{- if .Values.immichConfig.enableML }}
  84. mlcache:
  85. enabled: true
  86. type: emptyDir
  87. targetSelector:
  88. machinelearning:
  89. machinelearning:
  90. mountPath: /mlcache
  91. {{- end }}
  92. redis:
  93. enabled: true
  94. type: emptyDir
  95. targetSelector:
  96. redis:
  97. redis:
  98. mountPath: /bitnami/redis/data
  99. tmp:
  100. enabled: true
  101. type: emptyDir
  102. targetSelector:
  103. redis:
  104. redis:
  105. mountPath: /tmp
  106. {{/* Database */}}
  107. {{- include "ix.v1.common.app.postgresPersistence"
  108. (dict "pgData" .Values.immichStorage.pgData
  109. "pgBackup" .Values.immichStorage.pgBackup
  110. ) | nindent 2 }}
  111. {{- end -}}