_persistence.tpl 2.1 KB

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