Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

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