_persistence.tpl 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. {{- define "joplin.persistence" -}}
  2. persistence:
  3. postgresdata:
  4. enabled: true
  5. type: {{ .Values.joplinStorage.pgData.type }}
  6. datasetName: {{ .Values.joplinStorage.pgData.datasetName | default "" }}
  7. hostPath: {{ .Values.joplinStorage.pgData.hostPath | default "" }}
  8. targetSelector:
  9. # Postgres pod
  10. postgres:
  11. # Postgres container
  12. postgres:
  13. mountPath: /var/lib/postgresql/data
  14. # Postgres - Permissions container
  15. permissions:
  16. mountPath: /mnt/directories/postgres_data
  17. postgresbackup:
  18. enabled: true
  19. type: {{ .Values.joplinStorage.pgBackup.type }}
  20. datasetName: {{ .Values.joplinStorage.pgBackup.datasetName | default "" }}
  21. hostPath: {{ .Values.joplinStorage.pgBackup.hostPath | default "" }}
  22. targetSelector:
  23. # Postgres backup pod
  24. postgresbackup:
  25. # Postgres backup container
  26. postgresbackup:
  27. mountPath: /postgres_backup
  28. # Postgres - Permissions container
  29. permissions:
  30. mountPath: /mnt/directories/postgres_backup
  31. {{- end -}}