add default backup values

This commit is contained in:
Alexander Buntakov 2018-07-22 23:48:08 +03:00
parent 24dfe109f3
commit 37ee1e5434
3 changed files with 9 additions and 6 deletions

View File

@ -15,4 +15,4 @@ maintainers:
name: postgresql-walg
sources:
- https://github.com/abuntakov/charts
version: 0.2
version: 0.3

View File

@ -83,11 +83,11 @@ spec:
- name: WALG_S3_PREFIX
value: {{ .Values.backup.s3.prefix }}
- name: WALG_AWS_REGION
value: {{ default "us-west-2" .Values.backup.s3.region }}
value: {{ default "us-west-2" .Values.backup.s3.region | quote }}
- name: POSTGRES_MODE
value: {{ default "backup" .Values.backup.mode }}
- name: WALG_DELETE_RETAIN
value: {{ default "25" .Values.backup.deleteRetain }}
value: {{ default "15" .Values.backup.deleteRetain }}
- name: WALG_BASE_BACKUP_IN
value: {{ default "0 4 * * *" .Values.backup.baseBackupIn | quote }}
{{- end -}}

View File

@ -146,10 +146,13 @@ podAnnotations: {}
backup:
enabled: false
s3:
# accessKey:
# secretKey:
# accessKey:
# secretKey:
# endpoint: http+path://s3-us-west-2.amazonaws.com:80
# prefix: s3://my-backup/my-db
# region: us-west-2
config:
walLevel: replica
walLevel: replica
archiveMode: on
archiveCommand: "'envdir /etc/wal-e.d/env wal-e wal-push %p'"
archiveTimeout: 60