01) To view all MongoDB environment variables, from local computer run:
oc exec mongodb-XX-XXXXX env
02) To perform the dump, go to pod terminal in openshift console and enter this:
mongodump --host MONGODB_SERVICE_HOST:MONGODB_SERVICE_PORT --username admin --password "MONGODB_ADMIN_PASSWORD"