Skip to content

Commit f3c0fe3

Browse files
Merge pull request #2 from DataONEorg/feature-1-backup-template
Feature-1: Add `backup` Template
2 parents 00ed4cd + 28c22f0 commit f3c0fe3

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

templates/pg_cluster.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,7 @@ spec:
6565
storage:
6666
storageClass: {{ .Values.persistence.storageClass }}
6767
size: {{ .Values.persistence.size }}
68+
{{- with .Values.backup }}
69+
backup:
70+
{{- toYaml . | nindent 4 }}
71+
{{- end }}

values.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,3 +188,15 @@ postgresql:
188188
## enabled: false
189189
## source: "source-db" # must be defined in 'init.externalClusters'
190190
replica: {}
191+
192+
## Add backup capability to all clusters
193+
## https://cloudnative-pg.io/documentation/1.27/backup/
194+
##
195+
backup:
196+
## Configure the backup method to use k8s VolumeSnapshots as a default
197+
## https://cloudnative-pg.io/documentation/1.27/appendixes/backup_volumesnapshot/
198+
##
199+
volumeSnapshot:
200+
## @param backup.volumeSnapshot.className VolumeSnapshotClass to be used to make backups
201+
##
202+
className: csi-cephfsplugin-snapclass

0 commit comments

Comments
 (0)