I have mongoDB deployed on Kubernetes. The Database is setup properly and can be accessed using its internal dns name.
I need to expose this to the outside world. I have used node port/ loadbalancer to expose port 27017, but I cannot connect to the port using IP:port. Not faced an issue with web applications using IP:Port, not sure how to do it for a database.
If tried to browser, http://Kubernetes_Public_IP:NodePort gives me the following error message - It looks like you are trying to access MongoDB over HTTP on the native driver port.
I'm using robomongo to connect to the database.Using RoboMongo, setting Address to Kubernetes Public IP, and the Port to NodePort, I get the following error - Unable to connect to Kubernetes_Public_IP:NodePort
Need help in exposing the port and connecting to it using any kind of agent (robomongo not necessary).