feat: add snapshotgroup support to redis
This commit is contained in:
parent
e9d451c91c
commit
3ff26d4098
@ -2,7 +2,7 @@ apiVersion: v2
|
|||||||
name: kubezero-redis
|
name: kubezero-redis
|
||||||
description: KubeZero Umbrella Chart for Redis HA
|
description: KubeZero Umbrella Chart for Redis HA
|
||||||
type: application
|
type: application
|
||||||
version: 0.3.1
|
version: 0.3.2
|
||||||
home: https://kubezero.com
|
home: https://kubezero.com
|
||||||
icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png
|
icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png
|
||||||
keywords:
|
keywords:
|
||||||
|
12
charts/kubezero-redis/templates/snapshotgroup.yaml
Normal file
12
charts/kubezero-redis/templates/snapshotgroup.yaml
Normal file
@ -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 }}
|
@ -42,3 +42,12 @@ redis-cluster:
|
|||||||
|
|
||||||
istio:
|
istio:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
||||||
|
snapshotgroups: {}
|
||||||
|
# - name: redis-snaps
|
||||||
|
# claimName: redis-data-redis-cluster-master-0
|
||||||
|
# schedule:
|
||||||
|
# - every: hour
|
||||||
|
# keep: 24
|
||||||
|
# - every: day
|
||||||
|
# keep: 7
|
||||||
|
Loading…
Reference in New Issue
Block a user