morphy2k / k8s-mongo-sidecar

Kubernetes sidecar for MongoDB
MIT License
43 stars 33 forks source link

Replicas could not join the cluster #62

Open Proger666 opened 4 years ago

Proger666 commented 4 years ago

Hello!

I use minikube and your example configuration for mongo statefulsets.

First pod, which is mongo-0 works fine and become rs.0:primary. But i can see no errors in sidecarlogs:

Starting up k8s-mongo-sidecar
The cluster domain 'cluster.local' was successfully verified.
(node:19) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.

And no more logs or any actions in sidecar.

I can see constant connections on mongodb logs:

2020-06-02T21:07:15.048+0000 I  NETWORK  [listener] connection accepted from 172.18.0.16:60150 #65 (2 connections now open)
2020-06-02T21:07:15.048+0000 I  NETWORK  [conn65] received client metadata from 172.18.0.16:60150 conn65: { driver: { name: "nodejs", version: "3.5.6" }, os: { type: "Linux", name: "linux", architecture: "x64", version: "5.4.0-33-generic" }, platform: "'Node.js v12.16.2, LE (legacy)" }
2020-06-02T21:07:15.059+0000 I  NETWORK  [conn65] end connection 172.18.0.16:60150 (1 connection now open)
2020-06-02T21:07:15.059+0000 I  NETWORK  [conn64] end connection 127.0.0.1:58206 (0 connections now open)

So cluster does not form.

Do you know where issue can be ?

vladimirsvicevicsrb commented 1 year ago

I have the same issue. Any idea on this?