Network configuration MongoDB Replicaset

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?

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.