Mongo express is a web-based MongoDB admin interface written in Node.js, Express.js, and Bootstrap3.
The Mongo Express Operator may be deployed using the Juju command line as in
$ juju add-model mongo-express
$ juju deploy mongodb-k8s # deploy mongodb operator
$ juju deploy davigar15-mongo-express --channel edge
The IP of the Mongo Express User Interface may be found executing the following Juju command, in the units section.
$ juju status davigar15-mongo-express/0
The web UI will be available at port 8081.
To access the User Interface you need to get the credentials, that can be retrieved by executing the following Juju action.
$ juju run-action davigar15-mongo-express/0 get-credentials --wait
unit-davigar15-mongo-express-0:
UnitId: davigar15-mongo-express/0
id: "14"
results:
password: ********************
username: admin
status: completed
timing:
completed: 2021-11-08 09:48:15 +0000 UTC
enqueued: 2021-11-08 09:48:11 +0000 UTC
started: 2021-11-08 09:48:15 +0000 UTC
Please see the Juju SDK docs for guidelines
on enhancements to this charm following best practice guidelines, and
CONTRIBUTING.md
for developer guidance.