_persistence.tpl 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. {{- define "odoo.persistence" -}}
  2. persistence:
  3. data:
  4. enabled: true
  5. type: {{ .Values.odooStorage.data.type }}
  6. datasetName: {{ .Values.odooStorage.data.datasetName | default "" }}
  7. hostPath: {{ .Values.odooStorage.data.hostPath | default "" }}
  8. targetSelector:
  9. odoo:
  10. odoo:
  11. mountPath: /var/lib/odoo
  12. 01-permissions:
  13. mountPath: /mnt/directories/odoo_data
  14. 03-db-init:
  15. mountPath: /var/lib/odoo
  16. addons:
  17. enabled: true
  18. type: {{ .Values.odooStorage.addons.type }}
  19. datasetName: {{ .Values.odooStorage.addons.datasetName | default "" }}
  20. hostPath: {{ .Values.odooStorage.addons.hostPath | default "" }}
  21. targetSelector:
  22. odoo:
  23. odoo:
  24. mountPath: /mnt/extra-addons
  25. 01-permissions:
  26. mountPath: /mnt/directories/odoo_addons
  27. 03-db-init:
  28. mountPath: /mnt/extra-addons
  29. tmp:
  30. enabled: true
  31. type: emptyDir
  32. targetSelector:
  33. odoo:
  34. odoo:
  35. mountPath: /tmp
  36. 03-db-init:
  37. mountPath: /tmp
  38. config:
  39. enabled: true
  40. type: secret
  41. objectName: odoo-config
  42. targetSelector:
  43. odoo:
  44. odoo:
  45. mountPath: /etc/odoo/odoo.conf
  46. readOnly: true
  47. subPath: odoo.conf
  48. 03-db-init:
  49. mountPath: /etc/odoo/odoo.conf
  50. readOnly: true
  51. subPath: odoo.conf
  52. # Postgres
  53. postgresdata:
  54. enabled: true
  55. type: {{ .Values.odooStorage.pgData.type }}
  56. datasetName: {{ .Values.odooStorage.pgData.datasetName | default "" }}
  57. hostPath: {{ .Values.odooStorage.pgData.hostPath | default "" }}
  58. targetSelector:
  59. # Postgres pod
  60. postgres:
  61. # Postgres container
  62. postgres:
  63. mountPath: /var/lib/postgresql/data
  64. # Permissions container
  65. permissions:
  66. mountPath: /mnt/directories/postgres_data
  67. postgresbackup:
  68. enabled: true
  69. type: {{ .Values.odooStorage.pgBackup.type }}
  70. datasetName: {{ .Values.odooStorage.pgBackup.datasetName | default "" }}
  71. hostPath: {{ .Values.odooStorage.pgBackup.hostPath | default "" }}
  72. targetSelector:
  73. # Postgres backup pod
  74. postgresbackup:
  75. # Postgres backup container
  76. postgresbackup:
  77. mountPath: /postgres_backup
  78. # Permissions container
  79. permissions:
  80. mountPath: /mnt/directories/postgres_backup
  81. {{- end -}}