I was running MongoDB and Mongo-express with Kubernetes (by following tutotial by famous Nana)
I am not able to open the external service i created. On seeing the logs of Pod I found following.
Sun Jul 21 20:41:19 UTC 2024 retrying to connect to mongo:27017 (9/10)
/docker-entrypoint.sh: line 15: mongo: Name does not resolve
/docker-entrypoint.sh: line 15: /dev/tcp/mongo/27017: Invalid argument
Sun Jul 21 20:41:20 UTC 2024 retrying to connect to mongo:27017 (10/10)
/docker-entrypoint.sh: line 15: mongo: Name does not resolve
/docker-entrypoint.sh: line 15: /dev/tcp/mongo/27017: Invalid argument
No custom config.js found, loading config.default.js
Welcome to mongo-express 1.0.2
I suspect I am putting ME_CONFIG_MONGODB_SERVER wrong where as of now I have put the cluster Ip given by mongodb (mongodb+srv://cluster0.sg0pett.mongodb.net) when I created cluster?
As per tutorial I should have put the service name. but then my doubt is where do I put cluster name? or I dont need cluster name.