_persistence.tpl 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. {{- define "logseq.persistence" -}}
  2. persistence:
  3. nginx:
  4. enabled: true
  5. type: configmap
  6. objectName: nginx-config
  7. defaultMode: "0600"
  8. targetSelector:
  9. logseq:
  10. logseq:
  11. mountPath: /etc/nginx/conf.d/default.conf
  12. subPath: nginx.conf
  13. readOnly: true
  14. tmp:
  15. enabled: true
  16. type: emptyDir
  17. targetSelector:
  18. logseq:
  19. logseq:
  20. mountPath: /tmp
  21. varcache:
  22. enabled: true
  23. type: emptyDir
  24. targetSelector:
  25. logseq:
  26. logseq:
  27. mountPath: /var/cache/nginx
  28. varrun:
  29. enabled: true
  30. type: emptyDir
  31. targetSelector:
  32. logseq:
  33. logseq:
  34. mountPath: /var/run
  35. {{- range $idx, $storage := .Values.logseqStorage.additionalStorages }}
  36. {{ printf "logseq-%v" (int $idx) }}:
  37. enabled: true
  38. type: {{ $storage.type }}
  39. datasetName: {{ $storage.datasetName | default "" }}
  40. hostPath: {{ $storage.hostPath | default "" }}
  41. targetSelector:
  42. logseq:
  43. logseq:
  44. mountPath: {{ $storage.mountPath }}
  45. {{- end -}}
  46. {{- if .Values.logseqNetwork.certificateID }}
  47. cert:
  48. enabled: true
  49. type: secret
  50. objectName: logseq-cert
  51. defaultMode: "0600"
  52. items:
  53. - key: tls.key
  54. path: tls.key
  55. - key: tls.crt
  56. path: tls.crt
  57. targetSelector:
  58. logseq:
  59. logseq:
  60. mountPath: /etc/nginx/certs
  61. readOnly: true
  62. scaleCertificate:
  63. logseq-cert:
  64. enabled: true
  65. id: {{ .Values.logseqNetwork.certificateID }}
  66. {{- end -}}
  67. {{- end -}}