diff --git a/postgresql-walg/templates/deployment.yaml b/postgresql-walg/templates/deployment.yaml index 04d82e1..4a5ccd5 100755 --- a/postgresql-walg/templates/deployment.yaml +++ b/postgresql-walg/templates/deployment.yaml @@ -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 }} diff --git a/postgresql-walg/values.yaml b/postgresql-walg/values.yaml index 7e65da7..ae9cb27 100755 --- a/postgresql-walg/values.yaml +++ b/postgresql-walg/values.yaml @@ -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