[bitnami/postgresql] - Add PostgreSQL cross cluster replication ability (#3574)

This commit is contained in:
Tianyu Qiu
2020-09-02 00:25:11 -07:00
committed by GitHub
parent 3d25a069d9
commit b481f633ef
5 changed files with 33 additions and 2 deletions

View File

@@ -170,9 +170,19 @@ spec:
- name: PGDATA
value: {{ .Values.postgresqlDataDir | quote }}
{{- end }}
{{- if .Values.replication.enabled }}
{{- if .Values.masterAsStandBy.enabled }}
- name: POSTGRES_MASTER_HOST
value: {{ .Values.masterAsStandBy.masterHost }}
- name: POSTGRES_MASTER_PORT_NUMBER
value: {{ .Values.masterAsStandBy.masterPort | quote }}
{{- end }}
{{- if or .Values.replication.enabled .Values.masterAsStandBy.enabled }}
- name: POSTGRES_REPLICATION_MODE
{{- if .Values.masterAsStandBy.enabled }}
value: "slave"
{{- else }}
value: "master"
{{- end }}
- name: POSTGRES_REPLICATION_USER
value: {{ include "postgresql.replication.username" . | quote }}
{{- if .Values.usePasswordFile }}