I'm trying to deploy my app in Google Cloud Kubernetes Engine; it consists of backend (in Node.JS) and a DB (MongoDB).
When I'm testing it on my local VM within Minikube it works as expected - I can connect from the API to the DB.
However, when deploy it on GCP my API can't connect, and after checking the API's pod logs, I see the MongoDB :: connection error: MongoTimeoutError: Server selection timed out after 30000 ms
error.
I don't know if it matters, but those two microservices are in the same node.
Is there any difference to be aware of between the local Minikube setup and the GCP setup?