This is a ready-to-deploy online MongoDB admin tool for the WISE-PaaS users who did not subscribe to the dedicated MongoDB service and could not remotely access the database.
Follow the three steps to deploy this admin tool in a few minutes.
$ git clone git@github.com:WISE-PaaS/admin-mongo.git
$ cd admin-mongo/
$ code .
This is the minimun configuartion that you need to set up before deploying the app, which will affect the external URL of the application. Open k8s/ingress.yaml and edit as following according to your working space.
host
: {appName}.{namespace}.{clusterName}.en.internal
$ kubectl apply -f k8s/
-
Go to the Service Portal and select the MongoDB service from the drop-down menu. Find the service instance that you want to connect and click the Action icon on the right hand side. Then, click Secret Management.
-
Find the secret that you want to use. Click the "three-dots" on the right-hand side. Then, click View.
-
Find the
uri
property from the pop-up window. Copy the whole vaule so you can use it as a connection string.
-
Enter the external URL of your adminMongo deployment into the browser and open the page. If you have not added any connection, you will see the following page. If you do not see this page, click the Connection button on the top-right corner to come back to this page anytime. Give the new connection a name, paste the connection string that we just copied from thee Service Portal, and then click Add connection.