You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am deploying mongo express on a kubernetes cluster and is not connecting to mongodb container inside the pod. In the mongo-express documentation ithere is a list of variables we need to configure one of which is ME_CONFIG_MONGODB_SERVER to establish the connection. It turns out that when I kubectl exec into the mongo-express container it has an environment variable inside there that is NOT in the documentation and that variable is overriding the connection. The variable is ME_CONFIG_MONGODB_URL=mongodb://mongo:27017. When I set the variable to the same value of the variable ME_CONFIG_MONGODB_SERVER=mongodb-service, it solved the issue.
The text was updated successfully, but these errors were encountered:
I am deploying mongo express on a kubernetes cluster and is not connecting to mongodb container inside the pod. In the mongo-express documentation ithere is a list of variables we need to configure one of which is ME_CONFIG_MONGODB_SERVER to establish the connection. It turns out that when I kubectl exec into the mongo-express container it has an environment variable inside there that is NOT in the documentation and that variable is overriding the connection. The variable is ME_CONFIG_MONGODB_URL=mongodb://mongo:27017. When I set the variable to the same value of the variable ME_CONFIG_MONGODB_SERVER=mongodb-service, it solved the issue.
The text was updated successfully, but these errors were encountered: