diff --git a/helm/templates/elasticsearch.yaml b/helm/templates/elasticsearch.yaml index 935c716bf..9db9c9a8e 100644 --- a/helm/templates/elasticsearch.yaml +++ b/helm/templates/elasticsearch.yaml @@ -3,6 +3,8 @@ apiVersion: v1 kind: PersistentVolumeClaim metadata: name: {{ include "ragflow.fullname" . }}-es-data + annotations: + "helm.sh/resource-policy": keep labels: {{- include "ragflow.labels" . | nindent 4 }} app.kubernetes.io/component: elasticsearch diff --git a/helm/templates/infinity.yaml b/helm/templates/infinity.yaml index 8560e7821..6ccdff051 100644 --- a/helm/templates/infinity.yaml +++ b/helm/templates/infinity.yaml @@ -3,6 +3,8 @@ apiVersion: v1 kind: PersistentVolumeClaim metadata: name: {{ include "ragflow.fullname" . }}-infinity + annotations: + "helm.sh/resource-policy": keep labels: {{- include "ragflow.labels" . | nindent 4 }} app.kubernetes.io/component: infinity diff --git a/helm/templates/minio.yaml b/helm/templates/minio.yaml index 289007d63..7a5cb1a5d 100644 --- a/helm/templates/minio.yaml +++ b/helm/templates/minio.yaml @@ -3,6 +3,8 @@ apiVersion: v1 kind: PersistentVolumeClaim metadata: name: {{ include "ragflow.fullname" . }}-minio + annotations: + "helm.sh/resource-policy": keep labels: {{- include "ragflow.labels" . | nindent 4 }} app.kubernetes.io/component: minio diff --git a/helm/templates/mysql.yaml b/helm/templates/mysql.yaml index f47fc0ef3..2ec6dcd78 100644 --- a/helm/templates/mysql.yaml +++ b/helm/templates/mysql.yaml @@ -3,6 +3,8 @@ apiVersion: v1 kind: PersistentVolumeClaim metadata: name: {{ include "ragflow.fullname" . }}-mysql + annotations: + "helm.sh/resource-policy": keep labels: {{- include "ragflow.labels" . | nindent 4 }} app.kubernetes.io/component: mysql diff --git a/helm/templates/redis.yaml b/helm/templates/redis.yaml index 9ac1e951f..53e7a6781 100644 --- a/helm/templates/redis.yaml +++ b/helm/templates/redis.yaml @@ -3,6 +3,8 @@ apiVersion: v1 kind: Service metadata: name: {{ include "ragflow.fullname" . }}-redis + annotations: + "helm.sh/resource-policy": keep labels: {{- include "ragflow.labels" . | nindent 4 }} app.kubernetes.io/component: redis