You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found out that replicaset initialised with names like 192.168.0.7:30001 (where 192.168.0.7 is my internal host ip and 30001 is nodePort). It possible to connect externally with directConnection=true setting FQDN or ip only once. In case of that, when you try to connect to cluster without directConnection your external client trying to connect to all replicas in set at once right after connection init and fails, as of 192.168.0.7 ip available only in cluster network. I guess that MONGODB_ADVERTISED_HOSTNAME and following lines is a culprit:
Thank you for bringing this issue to our attention. We appreciate your involvement! If you're interested in contributing a solution, we welcome you to create a pull request. The Bitnami team is excited to review your submission and offer feedback. You can find the contributing guidelines here.
Your contribution will greatly benefit the community. Feel free to reach out if you have any questions or need assistance.
Name and Version
bitnami/mongodb 15.6.26
What architecture are you using?
amd64
What steps will reproduce the bug?
Are you using any custom parameters or values?
What is the expected behavior?
I can connect to cluster without any issues
What do you see instead?
getting error
connect ENETUNREACH 192.168.0.7:30001
Additional information
Closed issue: #13485
I found out that replicaset initialised with
names
like192.168.0.7:30001
(where192.168.0.7
is my internal host ip and 30001 is nodePort). It possible to connect externally withdirectConnection=true
setting FQDN or ip only once. In case of that, when you try to connect to cluster without directConnection your external client trying to connect to all replicas in set at once right after connection init and fails, as of 192.168.0.7 ip available only in cluster network. I guess thatMONGODB_ADVERTISED_HOSTNAME
and following lines is a culprit:charts/bitnami/mongodb/templates/replicaset/statefulset.yaml
Lines 202 to 205 in 973a279
values:
The text was updated successfully, but these errors were encountered: