can't connect to azure cosmos mongodb api from mongo-express inside kubernetes

326 views Asked by At

I have the following deployment settings for the mongo explored pod.

  • name: ME_CONFIG_MONGODB_CA_FILE value: /usr/local/conf/test.pem - name: ME_CONFIG_MONGODB_ENABLE_ADMIN value: 'true' - name: ME_CONFIG_OPTIONS_READONLY value: 'true' - name: ME_CONFIG_BASICAUTH_USERNAME - name: ME_CONFIG_BASICAUTH_PASSWORD - name: ME_CONFIG_MONGODB_PORT value: '10255' - name: ME_CONFIG_MONGODB_SERVER value: tfex.documents.azure.com - name: ME_CONFIG_MONGODB_ADMINUSERNAME value: tfex - name: ME_CONFIG_MONGODB_ADMINPASSWORD value: >-password - name: ME_CONFIG_MONGODB_URL value: >- mongodb://tfex:[email protected]:10255/db?ssl=true&sslverifycertificate=false&replicaSet=globaldb

and it is throwing following error and pod didn't up

MongoError: read ECONNRESET at TCP.onStreamRead (internal/stream_base_commons.js:205:27)

Any suggestions?

0

There are 0 answers