fix archive command

This commit is contained in:
Alexander Buntakov 2018-07-24 17:56:09 +03:00
parent ffe96c9c5e
commit de849e8d6e
2 changed files with 4 additions and 3 deletions

View File

@ -50,6 +50,7 @@ spec:
- name: {{ template "postgresql.fullname" . }}
image: "{{ .Values.image }}:{{ .Values.imageTag }}"
imagePullPolicy: {{ default "" .Values.imagePullPolicy | quote }}
command: ["./entrypoint.sh", "postgres"]
args:
{{- range $key, $value := $pgConfig }}
- -c
@ -78,9 +79,9 @@ spec:
secretKeyRef:
name: {{ template "postgresql.secretName" . }}
key: s3-secret-key
- name: WALG_S3_ENDPOINT
- name: AWS_ENDPOINT
value: {{ .Values.backup.s3.endpoint | quote }}
- name: WALG_S3_PREFIX
- name: WALE_S3_PREFIX
value: {{ .Values.backup.s3.prefix | quote }}
- name: AWS_REGION
value: {{ default "us-west-2" .Values.backup.s3.region | quote }}

View File

@ -154,7 +154,7 @@ backup:
config:
walLevel: replica
archiveMode: on
archiveCommand: "'/usr/bin/envdir /etc/wal-g.d/env /usr/bin/wal-g wal-push %p'"
archiveCommand: "/usr/bin/envdir /etc/wal-g.d/env /usr/bin/wal-g wal-push %p"
archiveTimeout: 60
maxWalSenders: 4
walWriterDelay: 200ms # 1-10000 milliseconds