Replicas¶
Create resource PostgresEndpoint to manage replicas
with the replicas field.
Each replica must contain name, host, and port. Example:
| replicas.yaml | |
|---|---|
1 2 3 4 5 6 7 | |
For each replica Melete will add 2 fields in secret with name patterns
"DB_" + replica_name + "_HOST" and "DB_" + replica_name + "_PORT".
replica_name will be converted to uppercase and replaced by - with _.
Example:
DB_REPLICA_HOSTDB_REPLICA_PORTDB_SYNC_REPLICA_HOSTDB_SYNC_REPLICA_PORT