diff --git a/charts/pg-db/README.md b/charts/pg-db/README.md index daa15780..ea87e007 100644 --- a/charts/pg-db/README.md +++ b/charts/pg-db/README.md @@ -240,6 +240,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 | `""` | diff --git a/charts/pg-db/templates/cluster.yaml b/charts/pg-db/templates/cluster.yaml index 9d6e0c4c..c08b2741 100644 --- a/charts/pg-db/templates/cluster.yaml +++ b/charts/pg-db/templates/cluster.yaml @@ -544,6 +544,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 }} diff --git a/charts/pg-db/values.yaml b/charts/pg-db/values.yaml index faa53133..3d012ad4 100644 --- a/charts/pg-db/values.yaml +++ b/charts/pg-db/values.yaml @@ -524,6 +524,9 @@ pmm: # switchover: # enabled: "true" # targetInstance: "" +# createReplicaMethods: +# - pgbackrest +# - basebackup # extensions: # image: percona/percona-postgresql-operator:2.6.0