Why does connection to MongoDB community deployed with Kubernetes operator disconnects frequently with JAVA client?
The connection to MongoDB is disconnecting frequently.
Im running MongoDB community version on Kubernetes. The MongoDB was deployed on Kubernetes using MongoDB community operator.
As per the logs one of the replica is primary and its getting added twice with mongo-replicaset-svc & mongo-replicaset-0.mongo-replicaset-svc.rhel8odp.svc.cluster.local identity.