A timeout occured after 30000ms selecting a server using CompositeServerSelector
I am replacing the connection string method in like below.
new MongoClient("mongodb://username:password@ds011111.mongolab.com:11111/db-name")
Now it's solved.
Please see the answer from Paul Lemke.
TimeoutException: A timeout occured after 30000ms selecting a server using CompositeServerSelector
Pretty sure you need the change the name of mongo db connectionstring. Check out the DNS for services section: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/
In your case it would be mongodb-service.default.svc.cluster.local
if you've deployed everything into default namespace.
Related Topics
A Reusable Pattern to Convert Event into Task
C# How to Loop While Mouse Button Is Held Down
How to "Zip" or "Rotate" a Variable Number of Lists
What Is Passing Parameters to SQL and Why Do I Need It
Filter All Queries (Trying to Achieve Soft Delete)
Convert Datatable to Generic List
Executenonquery for Select SQL Statement Returning No Rows
Calculate the Display Width of a String in C#
Ef Code First - How to Set Identity Seed
Center Multiple Rows of Controls in a Flowlayoutpanel
Can You Explain Liskov Substitution Principle with a Good C# Example
What Do Programmers Mean When They Say, "Code Against an Interface, Not an Object."
How to Run a .Net 4.5 App on Xp
How to Execute an X86 Assembly Sequence from Within C#