mirror of
https://github.com/bitnami/charts.git
synced 2026-02-26 07:37:57 +08:00
[bitnami/postgresql-ha] Add Repmgr passfile settings (#5879)
* [bitnami/postgresql-ha] Add Repmgr passfile settings * Update README.md with passfile settings
This commit is contained in:
@@ -27,4 +27,4 @@ name: postgresql-ha
|
||||
sources:
|
||||
- https://github.com/bitnami/bitnami-docker-postgresql
|
||||
- https://www.postgresql.org/
|
||||
version: 6.7.0
|
||||
version: 6.8.0
|
||||
|
||||
@@ -123,6 +123,8 @@ The following table lists the configurable parameters of the PostgreSQL HA chart
|
||||
| `postgresql.postgresPassword` | PostgreSQL password for the `postgres` user when `username` is not `postgres` | `nil` |
|
||||
| `postgresql.database` | PostgreSQL database | `postgres` |
|
||||
| `postgresql.usePasswordFile` | Have the secrets mounted as a file instead of env vars | `false` |
|
||||
| `postgresql.repmgrUsePassfile` | Configure repmgrl to use `passfile` instead of `password` vars | `false` |
|
||||
| `postgresql.repmgrPassfilePath` | Custom path where `passfile` will be stored | `nil` |
|
||||
| `postgresql.upgradeRepmgrExtension` | Upgrade repmgr extension in the database | `false` |
|
||||
| `postgresql.pgHbaTrustAll` | Configures PostgreSQL HBA to trust every user | `false` |
|
||||
| `postgresql.syncReplication` | Make the replication synchronous. This will wait until the data is synchronized in all the replicas before other query can be run. This ensures the data availability at the expenses of speed. | `false` |
|
||||
|
||||
@@ -255,6 +255,12 @@ spec:
|
||||
name: {{ include "postgresql-ha.postgresqlSecretName" . }}
|
||||
key: repmgr-password
|
||||
{{- end }}
|
||||
{{- if .Values.postgresql.repmgrUsePassfile }}
|
||||
- name: REPMGR_USE_PASSFILE
|
||||
value: {{ ternary "true" "false" .Values.postgresql.repmgrUsePassfile | quote }}
|
||||
- name: REPMGR_PASSFILE_PATH
|
||||
value: {{ default "/opt/bitnami/repmgr/conf/.pgpass" .Values.postgresql.repmgrPassfilePath }}
|
||||
{{- end }}
|
||||
{{- if (include "postgresql-ha.repmgrDatabase" .) }}
|
||||
- name: REPMGR_DATABASE
|
||||
value: {{ (include "postgresql-ha.repmgrDatabase" .) | quote }}
|
||||
|
||||
@@ -350,6 +350,14 @@ postgresql:
|
||||
## Mount PostgreSQL secret as a file instead of passing environment variable
|
||||
# usePasswordFile: false
|
||||
|
||||
## Store Repmgr username and password into a passfile with format "*:*:*:username:password" and use it to configure Repmgr instead of using password (Requires Postgresql 10+, otherwise ignored)
|
||||
# ref: https://repmgr.org/docs/current/configuration-password-management.html
|
||||
# https://www.postgresql.org/docs/current/libpq-pgpass.html
|
||||
# repmgrUsePassfile: false
|
||||
|
||||
## Store Repmgr in a custom path
|
||||
# repmgrPassfilePath:
|
||||
|
||||
## Upgrade repmgr extension in the database
|
||||
##
|
||||
upgradeRepmgrExtension: false
|
||||
|
||||
Reference in New Issue
Block a user