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 |
---|---|---|---|
[Atlas] - Disable cluster scale notifications | 1 | 307 | Jun 2024 |
MongoDB connection issues with Confluent cloud | 1 | 176 | Jul 2024 |
GitHub Student Developer Pack Atlas Credit Promo Code issue | 0 | 133 | Aug 2024 |
MongoDB Agent Accessing Container ID Instead of localhost/127.0.0.1 in Status Metrics Collection | 0 | 36 | Sep 2024 |
MongoDB 5.0.8 2008R2Plus SSL (64bit) on Windows 11 systembuild 22631.4602 | 1 | 138 | Dec 2024 |