MongoDB instance is in Azure Kubernetes pod. I want to access this headless mongodb from outside safely. I already installed compass in Virtual Machine and paste the connection string in mongodb compass both VM and kubernete are in same network but it is showing getaddrinfo ENOTFOUND error. In connection string there is replica set name rs0 and ssl=false