openshift origin latest - make mongodb accessible to external resources

Viewed 562

I'm running a small openshift cluster and would like to provide our developers with an hosted instance of mongo on it, which they connect to externally.

Which is easy enough, I thought. Sadly it still looks like all traffic has to go over haproxy and is limited to http/https. But my developers need to transparently access the correct mongo port 27017.

is there some way to expose the internal pod port, to the outside world, without knowing which pod it run on.

right now our dirty workaround is

oc port-forward mongodb-1-2n1ov 27017:27017

and than the client does a ssh forwarding from there machine to this.

instead we would rather have an automated solution that allows tcp forwarding for virtual defined hostnames.

could anyone point me in the right direction please?

1 Answers
Related