Skip to content

Commit af88ad9

Browse files
authored
Adding capability to stream off of a primary when deployed via Helm (CrunchyData#185)
* Adding capability to stream off of a primary due to feature addition in PGOv5.3, removing requirement to specify a repo when standby is enabled. * Removing outdated comment about required standby values and specifying more realistic values for host and port. * Changing port value to an integer Issue: [sc-17928]
1 parent f1766db commit af88ad9

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

helm/postgres/templates/postgres.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,9 @@ spec:
191191
{{- if .Values.standby }}
192192
standby:
193193
enabled: {{ .Values.standby.enabled }}
194-
repoName: {{ required "repoName must be set when enabling standby mode." .Values.standby.repoName }}
194+
repoName: {{ .Values.standby.repoName }}
195+
host: {{ .Values.standby.host }}
196+
port: {{ .Values.standby.port }}
195197
{{- end }}
196198
{{- if .Values.supplementalGroups }}
197199
supplementalGroups:

helm/postgres/values.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,15 @@ postgresVersion: 14
155155
# name: bootstrap-sql
156156
# key: bootstrap.sql
157157

158-
# standby sets whether or not to run this as a standby cluster. Both of the
159-
# values below are required to enable a standby cluster. Setting "enabled" to
158+
# standby sets whether or not to run this as a standby cluster. Setting "enabled" to
160159
# "true" eunables the standby cluster while "repoName" points to a pgBackRest
161-
# archive to replay WAL files from.
160+
# archive to replay WAL files from, and "host" and "port" point to a primary
161+
# cluster from which to stream data.
162162
# standby:
163163
# enabled: false
164164
# repoName: repo1
165+
# host: "192.0.2.2"
166+
# port: 5432
165167

166168
# shutdown when set scales the entire workload to zero. By default this is not
167169
# set.

0 commit comments

Comments
 (0)