diff --git a/charts/pg-db/README.md b/charts/pg-db/README.md index d03c6bf7..090bbefb 100644 --- a/charts/pg-db/README.md +++ b/charts/pg-db/README.md @@ -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 | `""` | diff --git a/charts/pg-db/templates/cluster.yaml b/charts/pg-db/templates/cluster.yaml index 7509ecac..ea0ec326 100644 --- a/charts/pg-db/templates/cluster.yaml +++ b/charts/pg-db/templates/cluster.yaml @@ -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 }} diff --git a/charts/pg-db/values.yaml b/charts/pg-db/values.yaml index 334ba44b..9e593dca 100644 --- a/charts/pg-db/values.yaml +++ b/charts/pg-db/values.yaml @@ -518,6 +518,9 @@ pmm: # switchover: # enabled: "true" # targetInstance: "" +# createReplicaMethods: +# - pgbackrest +# - basebackup # extensions: # image: percona/percona-postgresql-operator:2.6.0