Ensuring High Availability for MongoDB on Kubernetes
This tutorial will help you to install MongoDB in a Kubernetes environment.
Author: Mercy Bassey
This tutorial will help you to install MongoDB in a Kubernetes environment.
Author: Mercy Bassey
Hello Mercy,
That was a very helpful artical. It was just what I needed to setup, especially the replica setup. THANK YOU.
I have a suggestion and a query
Suggestion: Please include a code snippet about how to connect to the MongoDB from a python or go lang. The connection string is what I was trying to figure out. This would make the article useful to developers.
Query: A headless deployment gives all the A records for the MongoDB Pods. When we connect to MongoDB from an application, how it is decided which pod will be used for writing? I am using a connection string which does not have any pod information and I am still able to connect. Who does the magic?
I got lucky to see this article in first search result. Saved a lot.
Waiting for your reply,
Prem