Skip to content

Commit

Permalink
chore(crunchy): changes for crunchy-postgres to have local pvc backup…
Browse files Browse the repository at this point in the history
… in openshift (#536)
  • Loading branch information
sukanya-rath committed Jun 11, 2024
1 parent a718e2d commit bdcc3ac
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ spec:
repo1-retention-full-type: {{ .Values.pgBackRest.retentionFullType }}
repo1-path: '{{ .Values.pgBackRest.backupPath }}/{{ .Values.pgBackRest.clusterCounter}}'
repo1-s3-uri-style: path

repo2-retention-full: {{ .Values.pgBackRest.pvc.retention | quote }}
repo2-retention-full-type: {{ .Values.pgBackRest.pvc.retentionFullType }}
repos:
- name: repo1
schedules:
Expand All @@ -125,6 +128,18 @@ spec:
bucket: {{ .Values.pgBackRest.s3.bucket }}
endpoint: {{ .Values.pgBackRest.s3.endpoint }}
region: "ca-central-1"
- name: repo2
schedules:
full: {{ .Values.pgBackRest.pvc.fullBackupSchedule }}
incremental: {{ .Values.pgBackRest.pvc.incrementalBackupSchedule }}
volume:
volumeClaimSpec:
accessModes:
- {{ .Values.pgBackRest.pvc.volume.accessModes }}
resources:
requests:
storage: {{ .Values.pgBackRest.pvc.volume.storage }}
storageClassName: {{ .Values.pgBackRest.pvc.volume.storageClassName }}
{{- if and .Values.restore .Values.restore.enabled }}
restore:
enabled: {{ .Values.restore.enabled }}
Expand Down
9 changes: 9 additions & 0 deletions charts/fin-pay-transparency/values-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,15 @@ crunchy:
secretKey: ~
fullBackupSchedule: 0 9 * * *
incrementalBackupSchedule: "0 0,4,8,12,16 * * *" # every 4 hours, but 9 is not put intentionally to avoid conflict with full backup
pvc:
retention: "1"
retentionFullType: count
fullBackupSchedule: 0 8 * * *
incrementalBackupSchedule: 0 0,4,12,16,20 * * *
volume:
accessModes: "ReadWriteOnce"
storage: 64Mi
storageClassName: netapp-file-backup
config:
requests:
cpu: 5m
Expand Down
10 changes: 10 additions & 0 deletions charts/fin-pay-transparency/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,16 @@ crunchy:
secretKey: ~
fullBackupSchedule: 0 9 * * *
incrementalBackupSchedule: "0 0,1,3,5,7,11,13,15,17,19,21,23 * * *" # every 2 hours, but 9 is not put intentionally to avoid conflict with full backup
pvc:
retention: "1"
retentionFullType: count
fullBackupSchedule: 0 8 * * *
incrementalBackupSchedule: 0 0,4,12,16,20 * * *
volume:
accessModes: "ReadWriteOnce"
storage: 64Mi
storageClassName: netapp-file-backup

config:
requests:
cpu: 5m
Expand Down
10 changes: 10 additions & 0 deletions charts/fin-pay-transparency/values-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,16 @@ crunchy:
secretKey: ~
fullBackupSchedule: 0 9 * * *
incrementalBackupSchedule: "0 0,4,8,12,16 * * *" # every 4 hours, but 9 is not put intentionally to avoid conflict with full backup
pvc:
retention: "1"
retentionFullType: count
fullBackupSchedule: 0 8 * * *
incrementalBackupSchedule: 0 0,4,12,16,20 * * *
volume:
accessModes: "ReadWriteOnce"
storage: 64Mi
storageClassName: netapp-file-backup

config:
requests:
cpu: 5m
Expand Down
13 changes: 11 additions & 2 deletions charts/fin-pay-transparency/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ admin-frontend:
logLevel: info
autoscaling:
enabled: true
minReplicas: 1
maxReplicas: 2
minReplicas: 2
maxReplicas: 3
targetCPUUtilizationPercentage: 80 # this percentage from request cpu
podSecurityContext: {}
securityContext:
Expand Down Expand Up @@ -251,6 +251,15 @@ crunchy:
secretKey: ~
fullBackupSchedule: 0 9 * * *
incrementalBackupSchedule: "0 0,4,8,12,16 * * *" # every 4 hours, but 9 is not put intentionally to avoid conflict with full backup
pvc:
retention: "1"
retentionFullType: count
fullBackupSchedule: 0 8 * * *
incrementalBackupSchedule: 0 0,4,12,16,20 * * *
volume:
accessModes: "ReadWriteOnce"
storage: 64Mi
storageClassName: netapp-file-backup
config:
requests:
cpu: 5m
Expand Down

0 comments on commit bdcc3ac

Please sign in to comment.