Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

infinity.yaml 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. {{- if eq .Values.env.DOC_ENGINE "infinity" -}}
  2. apiVersion: v1
  3. kind: PersistentVolumeClaim
  4. metadata:
  5. name: {{ include "ragflow.fullname" . }}-infinity
  6. labels:
  7. {{- include "ragflow.labels" . | nindent 4 }}
  8. app.kubernetes.io/component: infinity
  9. spec:
  10. {{- with .Values.infinity.storage.className }}
  11. storageClassName: {{ . }}
  12. {{- end }}
  13. accessModes:
  14. - ReadWriteOnce
  15. resources:
  16. requests:
  17. storage: {{ .Values.infinity.storage.capacity }}
  18. ---
  19. apiVersion: apps/v1
  20. kind: Deployment
  21. metadata:
  22. name: {{ include "ragflow.fullname" . }}-infinity
  23. labels:
  24. {{- include "ragflow.labels" . | nindent 4 }}
  25. app.kubernetes.io/component: infinity
  26. spec:
  27. replicas: 1
  28. selector:
  29. matchLabels:
  30. {{- include "ragflow.selectorLabels" . | nindent 6 }}
  31. app.kubernetes.io/component: infinity
  32. {{- with .Values.infinity.deployment.strategy }}
  33. strategy:
  34. {{- . | toYaml | nindent 4 }}
  35. {{- end }}
  36. template:
  37. metadata:
  38. labels:
  39. {{- include "ragflow.labels" . | nindent 8 }}
  40. app.kubernetes.io/component: infinity
  41. annotations:
  42. checksum/config: {{ include (print $.Template.BasePath "/env.yaml") . | sha256sum }}
  43. spec:
  44. containers:
  45. - name: infinity
  46. image: {{ .Values.infinity.image.repository }}:{{ .Values.infinity.image.tag }}
  47. envFrom:
  48. - secretRef:
  49. name: {{ include "ragflow.fullname" . }}-env-config
  50. ports:
  51. - containerPort: 23817
  52. name: thrift
  53. - containerPort: 23820
  54. name: http
  55. - containerPort: 5432
  56. name: psql
  57. volumeMounts:
  58. - mountPath: /var/infinity
  59. name: infinity-data
  60. {{- with .Values.infinity.deployment.resources }}
  61. resources:
  62. {{- . | toYaml | nindent 10 }}
  63. {{- end }}
  64. securityContext:
  65. capabilities:
  66. add:
  67. - "NET_BIND_SERVICE"
  68. seccompProfile:
  69. type: RuntimeDefault
  70. livenessProbe:
  71. httpGet:
  72. path: /admin/node/current
  73. port: 23820
  74. initialDelaySeconds: 60
  75. periodSeconds: 10
  76. timeoutSeconds: 10
  77. failureThreshold: 120
  78. volumes:
  79. - name: infinity-data
  80. persistentVolumeClaim:
  81. claimName: {{ include "ragflow.fullname" . }}-infinity
  82. ---
  83. apiVersion: v1
  84. kind: Service
  85. metadata:
  86. name: {{ include "ragflow.fullname" . }}-infinity
  87. labels:
  88. {{- include "ragflow.labels" . | nindent 4 }}
  89. app.kubernetes.io/component: infinity
  90. spec:
  91. selector:
  92. {{- include "ragflow.selectorLabels" . | nindent 6 }}
  93. app.kubernetes.io/component: infinity
  94. ports:
  95. - protocol: TCP
  96. port: 23817
  97. targetPort: thrift
  98. name: thrift
  99. - protocol: TCP
  100. port: 23820
  101. targetPort: http
  102. name: http
  103. - protocol: TCP
  104. port: 5432
  105. targetPort: psql
  106. name: psql
  107. type: {{ .Values.infinity.service.type }}
  108. {{- end -}}