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

sidecar correctly does config on first mongo cluster only #111

Open
aaronnewsome opened this issue Feb 27, 2020 · 2 comments
Open

sidecar correctly does config on first mongo cluster only #111

aaronnewsome opened this issue Feb 27, 2020 · 2 comments

Comments

@aaronnewsome
Copy link

Hello everyone. I'm a bit new to kubernetes and I thought of using this to easily configure a mongodb cluster.

Using the stateful set example here:

https://github.com/cvallance/mongo-k8s-sidecar/blob/master/example/StatefulSet/mongo-statefulset.yaml

I was able to get it up and running. However, the sidecar only configures the 1st mongodb cluster correctly. If I bring up a 2nd or 3rd cluster, the sidecar does not configure them or init the cluster. On a 2nd cluster, I can open a shell, run mongo and also run rs.initiate to initialize the cluster.

I've already made a script that I can run manually that does the rs.initiate but I'd like to figure out why the sidecar won't configure 2nd and 3rd clusters. Any ideas?

Thanks in advance.

@ratnakarreddyg
Copy link

Hello @aaronnewsome

Could you please share a script that can perform rs.initiate? I am also having a similar requirement.

@aaronnewsome
Copy link
Author

aaronnewsome commented Mar 22, 2020 via email

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

No branches or pull requests

2 participants