You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

minio.yaml 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. ---
  2. apiVersion: v1
  3. kind: PersistentVolumeClaim
  4. metadata:
  5. name: {{ include "ragflow.fullname" . }}-minio
  6. annotations:
  7. "helm.sh/resource-policy": keep
  8. labels:
  9. {{- include "ragflow.labels" . | nindent 4 }}
  10. app.kubernetes.io/component: minio
  11. spec:
  12. {{- with .Values.minio.storage.className }}
  13. storageClassName: {{ . }}
  14. {{- end }}
  15. accessModes:
  16. - ReadWriteOnce
  17. resources:
  18. requests:
  19. storage: {{ .Values.minio.storage.capacity }}
  20. ---
  21. apiVersion: apps/v1
  22. kind: Deployment
  23. metadata:
  24. name: ragflow-minio-deployment
  25. labels:
  26. {{- include "ragflow.labels" . | nindent 4 }}
  27. app.kubernetes.io/component: minio
  28. annotations:
  29. checksum/config: {{ include (print $.Template.BasePath "/env.yaml") . | sha256sum }}
  30. spec:
  31. replicas: 1
  32. selector:
  33. matchLabels:
  34. {{- include "ragflow.selectorLabels" . | nindent 6 }}
  35. app.kubernetes.io/component: minio
  36. {{- with .Values.minio.deployment.strategy }}
  37. strategy:
  38. {{- . | toYaml | nindent 4 }}
  39. {{- end }}
  40. template:
  41. metadata:
  42. labels:
  43. {{- include "ragflow.labels" . | nindent 8 }}
  44. app.kubernetes.io/component: minio
  45. spec:
  46. containers:
  47. - name: minio
  48. image: {{ .Values.minio.image.repository }}:{{ .Values.minio.image.tag }}
  49. envFrom:
  50. - secretRef:
  51. name: {{ include "ragflow.fullname" . }}-env-config
  52. args:
  53. - server
  54. - "--console-address=:9001"
  55. - "/data"
  56. ports:
  57. - containerPort: 9000
  58. name: s3
  59. - containerPort: 9001
  60. name: console
  61. {{- with .Values.minio.deployment.resources }}
  62. resources:
  63. {{- . | toYaml | nindent 10 }}
  64. {{- end }}
  65. volumeMounts:
  66. - mountPath: /data
  67. name: minio-data
  68. volumes:
  69. - name: minio-data
  70. persistentVolumeClaim:
  71. claimName: {{ include "ragflow.fullname" . }}-minio
  72. ---
  73. apiVersion: v1
  74. kind: Service
  75. metadata:
  76. name: {{ include "ragflow.fullname" . }}-minio
  77. labels:
  78. {{- include "ragflow.labels" . | nindent 4 }}
  79. app.kubernetes.io/component: minio
  80. spec:
  81. selector:
  82. {{- include "ragflow.selectorLabels" . | nindent 4 }}
  83. app.kubernetes.io/component: minio
  84. ports:
  85. - name: s3
  86. protocol: TCP
  87. port: 9000
  88. targetPort: s3
  89. - name: console
  90. protocol: TCP
  91. port: 9001
  92. targetPort: console
  93. type: {{ .Values.minio.service.type }}