瀏覽代碼

Add Redis data retention policy config options (#9080)

### What problem does this PR solve?

Adds configuration options to the RAGFlow Helm chart to set the Redis
data retention policies. By default this feature is disabled to maintain
support with older Kubernetes versions.

https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention

### Type of change

- [X] New Feature (non-breaking change which adds functionality)
tags/v0.20.0
Scott Davidson 3 月之前
父節點
當前提交
e26f37351d
沒有連結到貢獻者的電子郵件帳戶。
共有 2 個檔案被更改,包括 14 行新增0 行删除
  1. 9
    0
      helm/templates/redis.yaml
  2. 5
    0
      helm/values.yaml

+ 9
- 0
helm/templates/redis.yaml 查看文件

@@ -64,6 +64,15 @@ spec:
{{- . | toYaml | nindent 12 }}
{{- end }}
{{- if .Values.redis.persistence.enabled }}
{{- with .Values.redis.persistence.retentionPolicy }}
persistentVolumeClaimRetentionPolicy:
{{- with .whenDeleted }}
whenDeleted: {{ . }}
{{- end }}
{{- with .whenScaled }}
whenScaled: {{ . }}
{{- end }}
{{- end }}
volumeClaimTemplates:
- metadata:
name: redis-data

+ 5
- 0
helm/values.yaml 查看文件

@@ -187,6 +187,11 @@ redis:
capacity: 5Gi
persistence:
enabled: true
# Set's the retention policy for the persistent storage (only available in k8s 1.32 or later)
# https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#persistentvolumeclaim-retention
# retentionPolicy:
# whenDeleted: Delete
# whenScaled: Delete
deployment:
strategy:
resources:

Loading…
取消
儲存