Patroni problems - replicas rejecting connection

Hello can someone help me recover a pg-db cluster, replica pods are constantly restarting saying postgres is not running. I’m attaching the full log

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/patroni/", line 595, in get_postgresql_status
    row = self.query(stmt.format(postgresql.wal_name, postgresql.lsn_name), retry=retry)[0]
  File "/usr/lib/python3.6/site-packages/patroni/", line 577, in query
    return self.server.query(sql, *params)
  File "/usr/lib/python3.6/site-packages/patroni/", line 663, in query
    raise PostgresConnectionException('connection problems')
patroni.exceptions.PostgresConnectionException: 'connection problems'
2023-06-22 07:53:39,304 WARNING: Postgresql is not running.

pg-db-repl1-7fbc985b57-2djzj.log (41.8 KB)

The problem was with the default mem values limit of 128Mb, you should change those for replicas.