Challenge 04 - Storage
November 2, 2023 ยท View on GitHub
< Previous Challenge - Home - Next Challenge >
Introduction
In the previous challenge, we discovered that our application is not connected to any database, so in this challenge, we will be learning how to deploy a MongoDB database onto ARO so that our application can have persistent data.
Description
In this challenge we will deploy a MongoDB database service. We will be using the OpenShift CLI to deploy a bitnami/mongodb container image from Docker Hub.
The database should have the following variables:
MONGODB_USERNAME=ratingsuser
MONGODB_PASSWORD=ratingspassword
MONGODB_DATABASE=ratingsdb
MONGODB_ROOT_USER=root
MONGODB_ROOT_PASSWORD=ratingspassword
Finally, once this has been deployed, you will also need to retrieve each service's hostname (the MongoDB and the rating-api) in order to complete the next challenge.
Success Criteria
To complete this challenge successfully, you should be able to:
- Successfully deploy the MongoDB service
- Verify successful deployment by checking the application status
- Identify the MongoDB service's hostname and have it written down or stored somewhere for the next challenge
- Identify the
rating-apiservice's hostname and have it written down or stored somewhere for the next challenge