_persistence.tpl 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. {{- define "minio.persistence" -}}
  2. persistence:
  3. {{- if not .Values.minioStorage.distributedMode }}
  4. export:
  5. enabled: true
  6. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.minioStorage.export) | nindent 4 }}
  7. targetSelector:
  8. minio:
  9. minio:
  10. mountPath: {{ .Values.minioStorage.export.mountPath }}
  11. {{- if and (eq .Values.minioStorage.export.type "ixVolume")
  12. (not (.Values.minioStorage.export.ixVolumeConfig | default dict).aclEnable) }}
  13. 01-permissions:
  14. mountPath: /mnt/directories/export
  15. {{- end }}
  16. {{- end }}
  17. tmp:
  18. enabled: true
  19. type: emptyDir
  20. targetSelector:
  21. minio:
  22. minio:
  23. mountPath: /tmp
  24. {{- range $idx, $storage := .Values.minioStorage.additionalStorages }}
  25. {{ printf "minio-%v:" (int $idx) }}
  26. enabled: true
  27. {{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
  28. targetSelector:
  29. minio:
  30. minio:
  31. mountPath: {{ $storage.mountPath }}
  32. {{- if and (eq $storage.type "ixVolume") (not ($storage.ixVolumeConfig | default dict).aclEnable) }}
  33. 01-permissions:
  34. mountPath: /mnt/directories{{ $storage.mountPath }}
  35. {{- end }}
  36. {{- end }}
  37. {{- include "ix.v1.common.app.postgresPersistence"
  38. (dict "pgData" .Values.minioStorage.pgData
  39. "pgBackup" .Values.minioStorage.pgBackup
  40. ) | nindent 2 }}
  41. {{- if .Values.minioNetwork.certificateID }}
  42. cert:
  43. enabled: true
  44. type: secret
  45. objectName: minio-cert
  46. defaultMode: "0600"
  47. items:
  48. - key: tls.key
  49. path: private.key
  50. - key: tls.crt
  51. path: public.crt
  52. targetSelector:
  53. minio:
  54. minio:
  55. mountPath: /etc/minio/certs
  56. readOnly: true
  57. certca:
  58. enabled: true
  59. type: secret
  60. objectName: minio-cert
  61. defaultMode: "0600"
  62. items:
  63. - key: tls.crt
  64. path: public.crt
  65. targetSelector:
  66. minio:
  67. minio:
  68. mountPath: /etc/minio/certs/CAs
  69. readOnly: true
  70. scaleCertificate:
  71. minio-cert:
  72. enabled: true
  73. id: {{ .Values.minioNetwork.certificateID }}
  74. {{- end }}
  75. {{- end -}}