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 have a question. The code knows to pull the correct IP for mongodb using $MONGODB_SERVICE_HOST. When does this variable get created and populated? When "oc new-app mongodb" get executed? If so, I tried to do a search across this project (returned 0 results) and couldn't find the spot that defines it.
The text was updated successfully, but these errors were encountered:
This is related to the fact that this app is somewhat designed for use with OpenShift.
MONGODB_SERVICE_HOST is an environment variable injected by Kubernetes/OpenShift as part of the Kubernetes service subsystem.
Until a service called "mongodb" exists in the project, this variable will have no value. Once a service called "mongodb" exists in the project, any time a pod is spun up it will have this value injected. Note that there is a limitation in Docker in that environment variables cannot be injected into a running process, which is why an existing instance of this app would not suddenly know about MONGODB_SERVICE_HOST until the pod was restarted.
I have a question. The code knows to pull the correct IP for mongodb using $MONGODB_SERVICE_HOST. When does this variable get created and populated? When "oc new-app mongodb" get executed? If so, I tried to do a search across this project (returned 0 results) and couldn't find the spot that defines it.
The text was updated successfully, but these errors were encountered: