minio-pvc.yaml 830 B

123456789101112131415161718192021222324252627
  1. {{- if and (not .Values.minio.persistence.existingClaim ) .Values.minio.persistence.enabled }}
  2. kind: PersistentVolumeClaim
  3. apiVersion: v1
  4. metadata:
  5. name: minio-data
  6. labels:
  7. tier: aihub-dag
  8. component: minio-pvc
  9. release: {{ .Release.Name }}
  10. annotations:
  11. {{- if .Values.minio.persistence.annotations}}
  12. {{- toYaml .Values.minio.persistence.annotations | nindent 4 }}
  13. {{- end }}
  14. spec:
  15. accessModes: [{{ .Values.minio.persistence.accessMode | quote }}]
  16. resources:
  17. requests:
  18. storage: {{ .Values.minio.persistence.size | quote }}
  19. {{- if .Values.minio.persistence.storageClassName }}
  20. {{- if (eq "-" .Values.minio.persistence.storageClassName) }}
  21. storageClassName: ""
  22. {{- else }}
  23. storageClassName: "{{ .Values.minio.persistence.storageClassName }}"
  24. {{- end }}
  25. {{- end }}
  26. {{- end }}