_persistence.tpl 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {{- define "firefly.persistence" -}}
  2. persistence:
  3. uploads:
  4. enabled: true
  5. type: {{ .Values.fireflyStorage.uploads.type }}
  6. datasetName: {{ .Values.fireflyStorage.uploads.datasetName | default "" }}
  7. hostPath: {{ .Values.fireflyStorage.uploads.hostPath | default "" }}
  8. targetSelector:
  9. firefly:
  10. firefly:
  11. mountPath: /var/www/html/storage/upload
  12. tmp:
  13. enabled: true
  14. type: emptyDir
  15. targetSelector:
  16. firefly:
  17. firefly:
  18. mountPath: /tmp
  19. firefly-importer:
  20. firefly-importer:
  21. mountPath: /tmp
  22. # Postgres
  23. postgresdata:
  24. enabled: true
  25. type: {{ .Values.fireflyStorage.pgData.type }}
  26. datasetName: {{ .Values.fireflyStorage.pgData.datasetName | default "" }}
  27. hostPath: {{ .Values.fireflyStorage.pgData.hostPath | default "" }}
  28. targetSelector:
  29. # Postgres pod
  30. postgres:
  31. # Postgres container
  32. postgres:
  33. mountPath: /var/lib/postgresql/data
  34. # Permissions container
  35. permissions:
  36. mountPath: /mnt/directories/postgres_data
  37. postgresbackup:
  38. enabled: true
  39. type: {{ .Values.fireflyStorage.pgBackup.type }}
  40. datasetName: {{ .Values.fireflyStorage.pgBackup.datasetName | default "" }}
  41. hostPath: {{ .Values.fireflyStorage.pgBackup.hostPath | default "" }}
  42. targetSelector:
  43. # Postgres backup pod
  44. postgresbackup:
  45. # Postgres backup container
  46. postgresbackup:
  47. mountPath: /postgres_backup
  48. # Permissions container
  49. permissions:
  50. mountPath: /mnt/directories/postgres_backup
  51. {{- end -}}