How to configure patroni bootstrap settings?

170 views
Skip to first unread message

Casey Link

unread,
Aug 14, 2023, 8:09:31 AM8/14/23
to Postgres Operator
Hi folks,

I need to configure the patroni bootstrap initdb yaml settings [0].

In version 4.x of the postgres-operator this was documented here [1]. However in the latest 5.4.x series I can't find any documentation for this.

The closest I've seen is how to configure the patroni dynamicConfiguration [2], but this isn't quite right as in patroni the dynamic config is separate from the main yaml config.

FWIW I have tried the 4.x method of creating a configmap pg-cluster-${NAME}-pgha-config with the config under the key postgres-ha.yaml, however this seems to have no effect.

Is it still possible to configure the patroni yaml settings?

(It seems like PostgresCluster.spec.config.files might be relevant, but I cannot find any other docs or examples)

Cheers,
Casey

Valerie Clarkson

unread,
Aug 17, 2023, 12:06:18 PM8/17/23
to Casey Link, Postgres Operator
Hi Casey,

Could you give me an example of what Patroni yaml settings you are trying to set?  I believe you can achieve what you are looking for from the Custom Postgres Configuration section in the docs.

Thanks
Valerie
Reply all
Reply to author
Forward
0 new messages