Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Switch to StatefulSet resources for stateful components (#8985)

Scott Davidson509a7fa4dcfe
diff --git a/helm/templates/elasticsearch.yaml b/helm/templates/elasticsearch.yaml
index 9db9c9a8ef..02e0645486 100644
--- a/helm/templates/elasticsearch.yaml
+++ b/helm/templates/elasticsearch.yaml
@@ -19,7 +19,7 @@ spec:
storage: {{ .Values.elasticsearch.storage.capacity }}
---
apiVersion: apps/v1
-kind: Deployment
+kind: StatefulSet
metadata:
name: {{ include "ragflow.fullname" . }}-es
labels:
diff --git a/helm/templates/infinity.yaml b/helm/templates/infinity.yaml
index 6ccdff0510..3821a31a9b 100644
--- a/helm/templates/infinity.yaml
+++ b/helm/templates/infinity.yaml
@@ -19,7 +19,7 @@ spec:
storage: {{ .Values.infinity.storage.capacity }}
---
apiVersion: apps/v1
-kind: Deployment
+kind: StatefulSet
metadata:
name: {{ include "ragflow.fullname" . }}-infinity
labels:
diff --git a/helm/templates/minio.yaml b/helm/templates/minio.yaml
index 7a5cb1a5d9..f01062c6e2 100644
--- a/helm/templates/minio.yaml
+++ b/helm/templates/minio.yaml
@@ -19,9 +19,9 @@ spec:
storage: {{ .Values.minio.storage.capacity }}
---
apiVersion: apps/v1
-kind: Deployment
+kind: StatefulSet
metadata:
- name: ragflow-minio-deployment
+ name: {{ include "ragflow.fullname" . }}-minio
labels:
{{- include "ragflow.labels" . | nindent 4 }}
app.kubernetes.io/component: minio
diff --git a/helm/templates/mysql.yaml b/helm/templates/mysql.yaml
index 2ec6dcd784..f6a3e80da0 100644
--- a/helm/templates/mysql.yaml
+++ b/helm/templates/mysql.yaml
@@ -19,7 +19,7 @@ spec:
storage: {{ .Values.mysql.storage.capacity }}
---
apiVersion: apps/v1
-kind: Deployment
+kind: StatefulSet
metadata:
name: {{ include "ragflow.fullname" . }}-mysql
labels:
diff --git a/helm/templates/opensearch.yaml b/helm/templates/opensearch.yaml
index 4dc97d9c9a..889a634b7e 100644
--- a/helm/templates/opensearch.yaml
+++ b/helm/templates/opensearch.yaml
@@ -19,7 +19,7 @@ spec:
storage: {{ .Values.opensearch.storage.capacity }}
---
apiVersion: apps/v1
-kind: Deployment
+kind: StatefulSet
metadata:
name: {{ include "ragflow.fullname" . }}-opensearch
labels: