Patroni

An open-source cluster management tool for PostgreSQL that provides high availability through automated failover and leader election. Patroni relies on a Distributed Configuration Store (DCS), such as etcd, Consul, ZooKeeper, Kubernetes, or the built-in Micro DCS, to coordinate cluster state and manage leadership.