I have 3 mongodb instances running inside a kubernetes cluster. I use a service to access the pods via the built-in kubernetes dns.
I already exposed them through nginx (