_persistence.tpl 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. {{- define "immich.persistence" -}}
  2. persistence:
  3. {{/* Data */}}
  4. library:
  5. enabled: true
  6. type: {{ .Values.immichStorage.library.type }}
  7. datasetName: {{ .Values.immichStorage.library.datasetName | default "" }}
  8. hostPath: {{ .Values.immichStorage.library.hostPath | default "" }}
  9. targetSelector:
  10. server:
  11. server:
  12. mountPath: /usr/src/app/upload/library
  13. microservices:
  14. microservices:
  15. mountPath: /usr/src/app/upload/library
  16. uploads:
  17. enabled: true
  18. type: {{ .Values.immichStorage.uploads.type }}
  19. datasetName: {{ .Values.immichStorage.uploads.datasetName | default "" }}
  20. hostPath: {{ .Values.immichStorage.uploads.hostPath | default "" }}
  21. targetSelector:
  22. server:
  23. server:
  24. mountPath: /usr/src/app/upload/upload
  25. microservices:
  26. microservices:
  27. mountPath: /usr/src/app/upload/upload
  28. thumbs:
  29. enabled: true
  30. type: {{ .Values.immichStorage.thumbs.type }}
  31. datasetName: {{ .Values.immichStorage.thumbs.datasetName | default "" }}
  32. hostPath: {{ .Values.immichStorage.thumbs.hostPath | default "" }}
  33. targetSelector:
  34. server:
  35. server:
  36. mountPath: /usr/src/app/upload/thumbs
  37. microservices:
  38. microservices:
  39. mountPath: /usr/src/app/upload/thumbs
  40. profile:
  41. enabled: true
  42. type: {{ .Values.immichStorage.profile.type }}
  43. datasetName: {{ .Values.immichStorage.profile.datasetName | default "" }}
  44. hostPath: {{ .Values.immichStorage.profile.hostPath | default "" }}
  45. targetSelector:
  46. server:
  47. server:
  48. mountPath: /usr/src/app/upload/profile
  49. microservices:
  50. microservices:
  51. mountPath: /usr/src/app/upload/profile
  52. video:
  53. enabled: true
  54. type: {{ .Values.immichStorage.video.type }}
  55. datasetName: {{ .Values.immichStorage.video.datasetName | default "" }}
  56. hostPath: {{ .Values.immichStorage.video.hostPath | default "" }}
  57. targetSelector:
  58. server:
  59. server:
  60. mountPath: /usr/src/app/upload/encoded-video
  61. microservices:
  62. microservices:
  63. mountPath: /usr/src/app/upload/encoded-video
  64. {{/* Caches */}}
  65. microcache:
  66. enabled: true
  67. type: emptyDir
  68. targetSelector:
  69. microservices:
  70. microservices:
  71. mountPath: /microcache
  72. {{- if .Values.immichConfig.enableTypesense }}
  73. typsense:
  74. enabled: true
  75. type: emptyDir
  76. targetSelector:
  77. typesense:
  78. typesense:
  79. mountPath: /typesense-data
  80. {{- end -}}
  81. {{- if .Values.immichConfig.enableML }}
  82. mlcache:
  83. enabled: true
  84. type: emptyDir
  85. targetSelector:
  86. machinelearning:
  87. machinelearning:
  88. mountPath: /mlcache
  89. {{- end }}
  90. redis:
  91. enabled: true
  92. type: emptyDir
  93. targetSelector:
  94. redis:
  95. redis:
  96. mountPath: /bitnami/redis/data
  97. tmp:
  98. enabled: true
  99. type: emptyDir
  100. targetSelector:
  101. redis:
  102. redis:
  103. mountPath: /tmp
  104. {{/* Database */}}
  105. postgresdata:
  106. enabled: true
  107. type: {{ .Values.immichStorage.pgData.type }}
  108. datasetName: {{ .Values.immichStorage.pgData.datasetName | default "" }}
  109. hostPath: {{ .Values.immichStorage.pgData.hostPath | default "" }}
  110. targetSelector:
  111. # Postgres pod
  112. postgres:
  113. # Postgres container
  114. postgres:
  115. mountPath: /var/lib/postgresql/data
  116. # Postgres - Permissions container
  117. # Different than the 01-permissions
  118. permissions:
  119. mountPath: /mnt/directories/postgres_data
  120. postgresbackup:
  121. enabled: true
  122. type: {{ .Values.immichStorage.pgBackup.type }}
  123. datasetName: {{ .Values.immichStorage.pgBackup.datasetName | default "" }}
  124. hostPath: {{ .Values.immichStorage.pgBackup.hostPath | default "" }}
  125. targetSelector:
  126. # Postgres backup pod
  127. postgresbackup:
  128. # Postgres backup container
  129. postgresbackup:
  130. mountPath: /postgres_backup
  131. # Postgres - Permissions container
  132. # Different than the 01-permissions
  133. permissions:
  134. mountPath: /mnt/directories/postgres_backup
  135. {{- end -}}