Skip to content

K8SPG-704: Add create replica methods #510

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: pg-2.7.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions charts/pg-db/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ The chart can be customized using the following configurable parameters:
| `patroni.syncPeriodSeconds` | The interval for refreshing the leader lock and applying dynamicConfiguration | `10` |
| `patroni.leaderLeaseDurationSeconds` | TTL of the cluster leader lock | `30` |
| `patroni.dynamicConfiguration` | Custom PostgreSQL configuration options. Please note that configuration changes are automatically applied to the running instances without validation, so having an invalid config can make the cluster unavailable | `{}` |
| `patroni.createReplicaMethods` | List of create replica methods in desired order. Operator will update Patroni instance configurations according to its value. If empty operator will add `basebackup` and prepend `pgbackrest` after the initial backup is completed. Valid values: `basebackup`, `pgbackrest` | `[]` |
| `patroni.dynamicConfiguration.postgresql.parameters` | Custom PostgreSQL configuration options | `{}` |
| `patroni.dynamicConfiguration.postgresql.pg_hba` | PostgreSQL Host-Based Authentication section | `{}` |
| `patroni.switchover.enabled` | Enables or disables manual change of the cluster primary instance | `""` |
Expand Down
4 changes: 4 additions & 0 deletions charts/pg-db/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,10 @@ spec:
targetInstance: {{ .Values.patroni.switchover.targetInstance }}
{{- end }}
{{- end }}
{{- if .Values.patroni.createReplicaMethods }}
createReplicaMethods:
{{ .Values.patroni.createReplicaMethods | toYaml | indent 6 }}
{{- end }}
{{- end }}

{{- if .Values.extensions }}
Expand Down
3 changes: 3 additions & 0 deletions charts/pg-db/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,9 @@ pmm:
# switchover:
# enabled: "true"
# targetInstance: ""
# createReplicaMethods:
# - pgbackrest
# - basebackup

# extensions:
# image: percona/percona-postgresql-operator:2.6.0
Expand Down
Loading