Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix nodes in replicaset unable to talk to each other #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix nodes in replicaset unable to talk to each other #3

wants to merge 1 commit into from

Conversation

prabhakar97
Copy link

@prabhakar97 prabhakar97 commented Feb 3, 2019

By default mongod command starts the daemon and binds to 127.0.0.1:27017. This is a problem because, port 27017 on every node is unreachable from every other node. This can be tested by creating the stateful cluster on kubernetes and trying to run db queries by logging into one of the nodes, for example kubectl exec -it mongo-0 -- mongo --host mongo-0.mongo,mongo-1.mongo,mongo-2.mongo. By passing the flag --bind_ip_all, the nodes are able to talk to each other.

@Indavelopers
Copy link

Since there's no versioning in place for choosing a specific MongoDB image version, it uses the lastest one, and after MongoDB v.42 both last flags for the command section of the Mongo container are deprecated and force a backOff error where the container is not able to be created.
Please remove those flags or use versioning for the image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants