diff --git a/helm/templates/elasticsearch.yaml b/helm/templates/elasticsearch.yaml index 9db9c9a8e..02e064548 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 6ccdff051..3821a31a9 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 7a5cb1a5d..f01062c6e 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 2ec6dcd78..f6a3e80da 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 4dc97d9c9..889a634b7 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: