diff --git a/charts/kubezero-redis/Chart.yaml b/charts/kubezero-redis/Chart.yaml index 15776ddf..cbd82457 100644 --- a/charts/kubezero-redis/Chart.yaml +++ b/charts/kubezero-redis/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: kubezero-redis description: KubeZero Umbrella Chart for Redis HA type: application -version: 0.3.1 +version: 0.3.2 home: https://kubezero.com icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png keywords: diff --git a/charts/kubezero-redis/templates/snapshotgroup.yaml b/charts/kubezero-redis/templates/snapshotgroup.yaml new file mode 100644 index 00000000..45d62b79 --- /dev/null +++ b/charts/kubezero-redis/templates/snapshotgroup.yaml @@ -0,0 +1,12 @@ +{{- range .Values.snapshotgroups }} +apiVersion: gemini.fairwinds.com/v1beta1 +kind: SnapshotGroup +metadata: + name: {{ .name }} + namespace: {{ $.Release.Namespace }} +spec: + persistentVolumeClaim: + claimName: {{ .claimName }} + schedule: + {{- toYaml .schedule | nindent 4 }} +{{- end }} diff --git a/charts/kubezero-redis/values.yaml b/charts/kubezero-redis/values.yaml index b83f909c..e413125e 100644 --- a/charts/kubezero-redis/values.yaml +++ b/charts/kubezero-redis/values.yaml @@ -42,3 +42,12 @@ redis-cluster: istio: enabled: false + +snapshotgroups: {} +# - name: redis-snaps +# claimName: redis-data-redis-cluster-master-0 +# schedule: +# - every: hour +# keep: 24 +# - every: day +# keep: 7