Hi everyone, sorry for the trivial question, but I’m new to MongoDB.
I have created a mongodb cluster in replicaset mode (3 nodes) on Azure AKS and I connect to this through IPs.
Following the reboot or a new deployment the IPs will change and therefore I would like to assign a URI to the hosts that is always the same.
What are the parameters to be evaluated? How can I do this?
Skip to main content
Looks like you need a dynamic DNS provider.
You have to provide an static IP in mongodb network access policy,
When we create/delete/restart (deploy) any kubernates pod or any serverless (ex, lamda) they get new IP so mongodb won’t recognaise and allow read/write so you have to setup an NAT IP for your pods. It can be achiveable via load balance also.
New & Unread Topics
Topic | Replies | Views | Activity |
---|---|---|---|
Cluster Meta Data | 0 | 160 | Jul 2024 |
Why is mongo@3.6 main recommendation at Mongo Atlas | 4 | 370 | Jul 2024 |
Creating schema relationship | 0 | 145 | Aug 2024 |
Interact Atlas API 2.0 with PowerShell | 4 | 102 | Dec 2024 |
Mongo db cluster upgrade | 3 | 21 | 16d |