thanks for the correction, I really appreciate it
the connection is based on this documentation https://www.mongodb.com/basics/mongodb-connection-string, For the failed connection maybe you have to check configmap or secret for the creds for root user monggo or maybe you have to check the service name please to make sure your kube internal URL is valid.
Thank you, I hope I can clear this issue, but feel free to if you have another perspective from this response