Description:
MongoDB deployed with Percona Operator with split-horizon DNS doesn’t connect and I get the following error: MongoServerSelectionError
Steps to Reproduce:
- Installed with latest Helm Percona Operator for MongoDB 6-node multi-cloud (Azure and AWS using NetBird) K8s cluster.
- Followed the instructions on this blog post (NodePort instructions): Beyond the Horizon: Mastering Percona Server for MongoDB Exposure in Kubernetes – Part One
Additional Information:
- The
psmdb
state is ready and I was able to connct to the database using the certificates but with the replica set’s internal DNS “<cluster-name>-rs0.<namespace>.svc.cluster.local
” - The DNS is correctly resolving the VM’s IP address as I can access other services runnning on other ports using it
- All K8s NodePorts traffic are allowed
- When I tried to use
nc
to check access to the pods’ NodePort ports I got connection timeout error
Expected Result:
The mongosh
CLI should be able to connect using the split horizon DNS