[Solved] Redirection to container leader

Hello! Right now I have a problem redirecting a container to container “leader”. I have a postgres master and replica instances, and I need that the replica could know where the leader is. I know I could use giddyup or rancher metadata to know the leader ip, but the point is I want it dynamically because the master could crash and another container will became the master.

Thanks!

There is a feature request for what you are looking for:

https://github.com/rancher/rancher/issues/1274

Hello Denise! Thanks for your response! Is right now a way to access to the “leader” container from another continer? for example, ping to an specific host… It’s like I need to solve this and I don’t know If I’d have enough time to wait for this feature. Thanks!

Thanks a lot for your help! I used giddyup and right now I have postgresql ha in rancher :wink: