After few days of experiment, i found out that when i start minikube using “minikube start --driver=virtualbox”, i cannot connect to mongodb atlas cluster using neither mongodb://: url nor mongodb+srv://: url
However if start minikube simply using command “minikube start”, my container can connect to atlas cluster using mongodb+srv://: url
So looks like some issue with virtualbox driver.
I tested same thing with microk8s and my container can connect to atlas cluster using mongodb+srv://: url