MongoDB Version Upgrades

Hello all!
We have some k8s clusters on premise with 3 MongoDB nodes, mongo-node-0, mongo-node-1, mongo-node-2. Clusters and VMs are created with Terraform and provisioned Ansible. DBAs have been upgrading Mongo nodes manually so far. I have a task to automate upgrading MongoDB versions with Ansible. If I introduce 3 new nodes with newer version and retire older version nodes from the mongo cluster, what would be possible solutions to node’s naming issue? Apps are using Mongo URI with node name in it? We cant tolerate any downtime. Looking forward to hearing thoughts on this or other possible options. Thank you.