rancher / catalog-dockerfiles

Dockerfiles for Rancher Catalog containers
Apache License 2.0
131 stars 102 forks source link

How to connect a client? #94

Open occasl opened 7 years ago

occasl commented 7 years ago

I'm confused how to connect a client to the MongoDB catalog replica set offering. I understand how to create it but how would a client connect to the primary of the replica set? I've tried setting up HAProxy LB to connect to it but it just round robins between the nodes in the cluster. Since the cluster nodes don't expose 27017, you can't set-up the usual mongodb URL to connect to the primary consistently.