_persistence.tpl 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. {{- define "planka.persistence" -}}
  2. persistence:
  3. avatars:
  4. enabled: true
  5. type: {{ .Values.plankaStorage.avatars.type }}
  6. datasetName: {{ .Values.plankaStorage.avatars.datasetName | default "" }}
  7. hostPath: {{ .Values.plankaStorage.avatars.hostPath | default "" }}
  8. targetSelector:
  9. planka:
  10. planka:
  11. mountPath: /app/public/user-avatars
  12. 01-permissions:
  13. mountPath: /mnt/directories/user-avatars
  14. bg-img:
  15. enabled: true
  16. type: {{ .Values.plankaStorage.backgroundImages.type }}
  17. datasetName: {{ .Values.plankaStorage.backgroundImages.datasetName | default "" }}
  18. hostPath: {{ .Values.plankaStorage.backgroundImages.hostPath | default "" }}
  19. targetSelector:
  20. planka:
  21. planka:
  22. mountPath: /app/public/project-background-images
  23. 01-permissions:
  24. mountPath: /mnt/directories/project-background-images
  25. attachments:
  26. enabled: true
  27. type: {{ .Values.plankaStorage.attachments.type }}
  28. datasetName: {{ .Values.plankaStorage.attachments.datasetName | default "" }}
  29. hostPath: {{ .Values.plankaStorage.attachments.hostPath | default "" }}
  30. targetSelector:
  31. planka:
  32. planka:
  33. mountPath: /app/private/attachments
  34. 01-permissions:
  35. mountPath: /mnt/directories/attachments
  36. tmp:
  37. enabled: true
  38. type: emptyDir
  39. targetSelector:
  40. planka:
  41. planka:
  42. mountPath: /tmp
  43. {{- range $idx, $storage := .Values.plankaStorage.additionalStorages }}
  44. {{ printf "planka-%v" (int $idx) }}:
  45. enabled: true
  46. type: {{ $storage.type }}
  47. datasetName: {{ $storage.datasetName | default "" }}
  48. hostPath: {{ $storage.hostPath | default "" }}
  49. targetSelector:
  50. planka:
  51. planka:
  52. mountPath: {{ $storage.mountPath }}
  53. 01-permissions:
  54. mountPath: /mnt/directories{{ $storage.mountPath }}
  55. {{- end }}
  56. {{/* Database */}}
  57. postgresdata:
  58. enabled: true
  59. type: {{ .Values.plankaStorage.pgData.type }}
  60. datasetName: {{ .Values.plankaStorage.pgData.datasetName | default "" }}
  61. hostPath: {{ .Values.plankaStorage.pgData.hostPath | default "" }}
  62. targetSelector:
  63. # Postgres pod
  64. postgres:
  65. # Postgres container
  66. postgres:
  67. mountPath: /var/lib/postgresql/data
  68. # Postgres - Permissions container
  69. # Different than the 01-permissions
  70. permissions:
  71. mountPath: /mnt/directories/postgres_data
  72. postgresbackup:
  73. enabled: true
  74. type: {{ .Values.plankaStorage.pgBackup.type }}
  75. datasetName: {{ .Values.plankaStorage.pgBackup.datasetName | default "" }}
  76. hostPath: {{ .Values.plankaStorage.pgBackup.hostPath | default "" }}
  77. targetSelector:
  78. # Postgres backup pod
  79. postgresbackup:
  80. # Postgres backup container
  81. postgresbackup:
  82. mountPath: /postgres_backup
  83. # Postgres - Permissions container
  84. # Different than the 01-permissions
  85. permissions:
  86. mountPath: /mnt/directories/postgres_backup
  87. {{- end -}}