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.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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: StatefulSet
  23. metadata:
  24. name: {{ include "ragflow.fullname" . }}-minio
  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. {{- if or .Values.imagePullSecrets .Values.minio.image.pullSecrets }}
  47. imagePullSecrets:
  48. {{- with .Values.imagePullSecrets }}
  49. {{- toYaml . | nindent 8 }}
  50. {{- end }}
  51. {{- with .Values.minio.image.pullSecrets }}
  52. {{- toYaml . | nindent 8 }}
  53. {{- end }}
  54. {{- end }}
  55. containers:
  56. - name: minio
  57. image: {{ .Values.minio.image.repository }}:{{ .Values.minio.image.tag }}
  58. {{- with .Values.minio.image.pullPolicy }}
  59. imagePullPolicy: {{ . }}
  60. {{- end }}
  61. envFrom:
  62. - secretRef:
  63. name: {{ include "ragflow.fullname" . }}-env-config
  64. args:
  65. - server
  66. - "--console-address=:9001"
  67. - "/data"
  68. ports:
  69. - containerPort: 9000
  70. name: s3
  71. - containerPort: 9001
  72. name: console
  73. {{- with .Values.minio.deployment.resources }}
  74. resources:
  75. {{- . | toYaml | nindent 10 }}
  76. {{- end }}
  77. volumeMounts:
  78. - mountPath: /data
  79. name: minio-data
  80. volumes:
  81. - name: minio-data
  82. persistentVolumeClaim:
  83. claimName: {{ include "ragflow.fullname" . }}-minio
  84. ---
  85. apiVersion: v1
  86. kind: Service
  87. metadata:
  88. name: {{ include "ragflow.fullname" . }}-minio
  89. labels:
  90. {{- include "ragflow.labels" . | nindent 4 }}
  91. app.kubernetes.io/component: minio
  92. spec:
  93. selector:
  94. {{- include "ragflow.selectorLabels" . | nindent 4 }}
  95. app.kubernetes.io/component: minio
  96. ports:
  97. - name: s3
  98. protocol: TCP
  99. port: 9000
  100. targetPort: s3
  101. - name: console
  102. protocol: TCP
  103. port: 9001
  104. targetPort: console
  105. type: {{ .Values.minio.service.type }}