mirror of
https://github.com/bitnami/charts.git
synced 2026-03-13 14:57:24 +08:00
[bitnami/postgresql] - Add PostgreSQL cross cluster replication ability (#3574)
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user