mongodb / mongodb-kubernetes-operator

MongoDB Community Kubernetes Operator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mongodb Replicaset connection string unable to connect every time primary

thennetivamsi opened this issue · comments

What did you do to encounter the bug?
how to connect outside the cluster every time primary node. i deployed replicaset cluster and i get cluster IP by using this IP then i connect every time primary node in side node but outside its shows error so how to fix it.
ALT
replicaset connection string issue
we deployed mongodb replicaset 3 node cluster and we create gateway and connected replicaset service using IP:Port connected but its not connect every time primary node so inside the node 1,2,3 we are mansion replicaSet=name then its able to connect every time primary but outside the node not able to connect primary and also we mansion replicaSet=name but it's show error so please guide me how to achieve outside the cluster i need to connect every time primary.
inside node connect every time primary as expected.
ALT
What did you expect?
how to connect outside the cluster every time primary node.

What happened instead?
inside the node we able to connect every time primary but outside cluster not connect every time primary.

Operator Information

  • Operator Version 1.18
  • MongoDB Image used 5.0.15

Kubernetes Cluster Information

  • Distribution
  • Version 5.0.15
  • Image Registry location (quay, or an internal registry)

This issue is being marked stale because it has been open for 60 days with no activity. Please comment if this issue is still affecting you. If there is no change, this issue will be closed in 30 days.

Yes I'm still facing the same issue.

This issue is being marked stale because it has been open for 60 days with no activity. Please comment if this issue is still affecting you. If there is no change, this issue will be closed in 30 days.

Ya this seems to be a large issue for me as well. I've just been arbitrarily choosing a pod and hoping its not secondary when connecting to the cluster. Any hints?

This issue is being marked stale because it has been open for 60 days with no activity. Please comment if this issue is still affecting you. If there is no change, this issue will be closed in 30 days.

Yes I'm still facing the same issue.

This issue was closed because it became stale and did not receive further updates. If the issue is still affecting you, please re-open it, or file a fresh Issue with updated information.