_persistance.tpl 1.4 KB

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