Skip to content

Commit 14a7a05

Browse files
committed
enable volume snapshots for pgdb01
1 parent cf9f2a3 commit 14a7a05

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

pgdb01-cirrus/templates/postgres_cluster.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,15 @@ spec:
1616
cpu: {{ .Values.db.resource.limits.cpu | quote }}
1717
memory: {{ .Values.db.resource.limits.memory }}
1818

19-
{{- if .Values.db.backups }}
2019
backup:
2120
{{- if .Values.db.backups.volumeSnapshot }}
2221
volumeSnapshot:
2322
className: {{ .Values.db.backups.volumeSnapshot.snapshotClassName }}
2423
{{- end }}
25-
{{- end }}
2624

25+
# Keep 8 weekly backups
26+
retentionPolicy: "8w"
27+
2728
{{- if .Values.db.backups.s3.enabled }}
2829
plugins:
2930
- enabled: true

pgdb01-cirrus/values.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ db:
1515
memory: 128Gi
1616

1717
backups:
18-
enabled: false
18+
volumeSnapshot:
19+
enabled: true
20+
snapshotClassName: csi-rbdplugin-snapclass
1921
s3:
2022
enabled: false

0 commit comments

Comments
 (0)