_persistence.tpl 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {{- define "vikunja.persistence" -}}
  2. persistence:
  3. tmp:
  4. enabled: true
  5. type: emptyDir
  6. targetSelector:
  7. vikunja:
  8. vikunja:
  9. mountPath: /tmp
  10. nginxvar:
  11. enabled: true
  12. type: emptyDir
  13. targetSelector:
  14. vikunja-proxy:
  15. vikunja-proxy:
  16. mountPath: /var/cache/nginx
  17. nginxrun:
  18. enabled: true
  19. type: emptyDir
  20. targetSelector:
  21. vikunja-proxy:
  22. vikunja-proxy:
  23. mountPath: /var/run
  24. data:
  25. enabled: true
  26. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.vikunjaStorage.data) | nindent 4 }}
  27. targetSelector:
  28. vikunja-api:
  29. vikunja-api:
  30. mountPath: /app/vikunja/files
  31. nginx:
  32. enabled: true
  33. type: configmap
  34. objectName: nginx-config
  35. defaultMode: "0600"
  36. targetSelector:
  37. vikunja-proxy:
  38. vikunja-proxy:
  39. mountPath: /etc/nginx/conf.d/default.conf
  40. subPath: nginx-config
  41. readOnly: true
  42. {{- range $idx, $storage := .Values.vikunjaStorage.additionalStorages }}
  43. {{ printf "vikunja-%v" (int $idx) }}:
  44. enabled: true
  45. {{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
  46. targetSelector:
  47. vikunja-api:
  48. vikunja-api:
  49. mountPath: {{ $storage.mountPath }}
  50. {{- end -}}
  51. {{- include "ix.v1.common.app.postgresPersistence"
  52. (dict "pgData" .Values.vikunjaStorage.pgData
  53. "pgBackup" .Values.vikunjaStorage.pgBackup
  54. ) | nindent 2 }}
  55. {{- end -}}