Closed pankaj-dahiya-devops closed 2 years ago
Hi @pankaj-dahiya, could you describe what you mean by this?
Headless service should be connected to all associate pods. Whereas it isn't showing all mongos pods!!
Note that the headless service is meant to serve as an entrypoint for connecting to MongoDB pods, meaning you specify the hostname of the headless service when connecting your applications (or CLI) to the MongoDB cluster.
Have you tried connecting to the headless service with the mongo-shell
CLI?
"Note that the headless service is meant to serve as an entrypoint for connecting to MongoDB pods" ----- This is what I am stating above. The headless service is connected to mongos-1 but not to mongos-0 !! I ideal case, it must be connected with mongos-0 and mongos-1
@pankaj-dahiya Unfortunately I could not reproduce your issue. When deploying the service, the headless one is linked to both mongos instances. We could verify this by checking that the service is associated to the IP addresses of both pods.
Could you share more information on how you are deploying your chart?
In addition, if you are able to find the issue on your side, feel free to contribute as a PR, we'd be happy to check it.
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.
Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.
Name and Version
bitnami/mongo-sharded --- version: 5.0.0
What steps will reproduce the bug?
Basic helm install
Are you using any custom parameters or values?
No response
What is the expected behavior?
Headless service should be connected to all associate pods. Whereas it isn't showing all mongos pods!!
What do you see instead?
Additional information
I am reaching to MongoDB-sharded headless service from another pod .