Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

ragflow.yaml 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. ---
  2. apiVersion: apps/v1
  3. kind: Deployment
  4. metadata:
  5. name: {{ include "ragflow.fullname" . }}
  6. labels:
  7. {{- include "ragflow.labels" . | nindent 4 }}
  8. app.kubernetes.io/component: ragflow
  9. spec:
  10. replicas: 1
  11. selector:
  12. matchLabels:
  13. {{- include "ragflow.selectorLabels" . | nindent 6 }}
  14. app.kubernetes.io/component: ragflow
  15. {{- with .Values.ragflow.deployment.strategy }}
  16. strategy:
  17. {{- . | toYaml | nindent 4 }}
  18. {{- end }}
  19. template:
  20. metadata:
  21. labels:
  22. {{- include "ragflow.labels" . | nindent 8 }}
  23. app.kubernetes.io/component: ragflow
  24. annotations:
  25. checksum/config-env: {{ include (print $.Template.BasePath "/env.yaml") . | sha256sum }}
  26. checksum/config-ragflow: {{ include (print $.Template.BasePath "/ragflow_config.yaml") . | sha256sum }}
  27. spec:
  28. containers:
  29. - name: ragflow
  30. image: {{ .Values.env.RAGFLOW_IMAGE }}
  31. ports:
  32. - containerPort: 80
  33. name: http
  34. volumeMounts:
  35. - mountPath: /etc/nginx/conf.d/ragflow.conf
  36. subPath: ragflow.conf
  37. name: nginx-config-volume
  38. - mountPath: /etc/nginx/proxy.conf
  39. subPath: proxy.conf
  40. name: nginx-config-volume
  41. - mountPath: /etc/nginx/nginx.conf
  42. subPath: nginx.conf
  43. name: nginx-config-volume
  44. envFrom:
  45. - secretRef:
  46. name: {{ include "ragflow.fullname" . }}-env-config
  47. {{- with .Values.ragflow.deployment.resources }}
  48. resources:
  49. {{- . | toYaml | nindent 10 }}
  50. {{- end }}
  51. volumes:
  52. - name: nginx-config-volume
  53. configMap:
  54. name: nginx-config
  55. ---
  56. apiVersion: v1
  57. kind: Service
  58. metadata:
  59. name: {{ include "ragflow.fullname" . }}
  60. labels:
  61. {{- include "ragflow.labels" . | nindent 4 }}
  62. app.kubernetes.io/component: ragflow
  63. spec:
  64. selector:
  65. {{- include "ragflow.selectorLabels" . | nindent 4 }}
  66. app.kubernetes.io/component: ragflow
  67. ports:
  68. - protocol: TCP
  69. port: 80
  70. targetPort: http
  71. name: http
  72. type: {{ .Values.ragflow.service.type }}