Kaynağa Gözat

Switch to StatefulSet resources for stateful components (#8985)

### What problem does this PR solve?

Switch to Kubernetes StatefulSet resources for MySQL, Minio and vector
DB since these are stateful application components. This makes
operations such as helm upgrade smoother since the default container
update strategy becomes a sequential rolling update of each pod.

Also fixes a bug in the name template for the Minio stateful set
resource to align it with the naming convention used for other
components.

### Type of change

- [X] Bug Fix (non-breaking change which fixes an issue)
tags/v0.20.0
Scott Davidson 3 ay önce
ebeveyn
işleme
509a7fa4dc
No account linked to committer's email address

+ 1
- 1
helm/templates/elasticsearch.yaml Dosyayı Görüntüle

@@ -19,7 +19,7 @@ spec:
storage: {{ .Values.elasticsearch.storage.capacity }}
---
apiVersion: apps/v1
kind: Deployment
kind: StatefulSet
metadata:
name: {{ include "ragflow.fullname" . }}-es
labels:

+ 1
- 1
helm/templates/infinity.yaml Dosyayı Görüntüle

@@ -19,7 +19,7 @@ spec:
storage: {{ .Values.infinity.storage.capacity }}
---
apiVersion: apps/v1
kind: Deployment
kind: StatefulSet
metadata:
name: {{ include "ragflow.fullname" . }}-infinity
labels:

+ 2
- 2
helm/templates/minio.yaml Dosyayı Görüntüle

@@ -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

+ 1
- 1
helm/templates/mysql.yaml Dosyayı Görüntüle

@@ -19,7 +19,7 @@ spec:
storage: {{ .Values.mysql.storage.capacity }}
---
apiVersion: apps/v1
kind: Deployment
kind: StatefulSet
metadata:
name: {{ include "ragflow.fullname" . }}-mysql
labels:

+ 1
- 1
helm/templates/opensearch.yaml Dosyayı Görüntüle

@@ -19,7 +19,7 @@ spec:
storage: {{ .Values.opensearch.storage.capacity }}
---
apiVersion: apps/v1
kind: Deployment
kind: StatefulSet
metadata:
name: {{ include "ragflow.fullname" . }}-opensearch
labels:

Loading…
İptal
Kaydet