I want to connect to my MongoDB hosted on Openshift Online (we have a Pro account) using only the database's Host IP, Port, db username, db password, db name. Currently I can do it using the Openshift client tools using the oc port-forward <pod_name> :27017
and then using the port in Robo 3T, but I'd like to not use these tools.
I need to share the above credentials to my clients to login and access the database. I cannot share the Openshift credentials, that's the only way to port-forward the pod (I'm sure there's some way to do that without these tools).
How do I expose the MongoDB pod on an external route IP so that the client can use any of their Mongo tools (like Robo 3T or command line). Does that have to do with the routing? I'm weak in network and route configurations.