For this lab, we will be creating an application that has multiple containers. You will learn to work with templates to create a multi-container application.
Due to limitations in the A Cloud Guru Cloud Playground environment, we are unable to provide a hands-on experience for this lab.
1. To complete this lab, you must first register for a Red Hat Developer login on the ***[Red Hat login page](https://developers.redhat.com/login)***.
2. Once registered, you may complete the lab steps using ***[Red Hat’s CodeReady Containers](https://cloud.redhat.com/openshift/install/crc/installer-provisioned)*** or the ***[Red Hat-provided OpenShift sandbox](https://developers.redhat.com/products/codeready-containers/overview)***.
Solutions for using CodeReady Containers and the Red Hat OpenShift sandbox are available in this lab.
*This lab is not approved or sponsored by Red Hat.*
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Log In to the Cluster and Create a New Project
Log in to the OpenShift cluster using
oc login
and/or the web UI.Create a new project called
multi-test
with a display name ofMulti-Container Test
(skip if using Red Hat OpenShift sandbox).
- Download the OpenShift Template and Publish It
Download the template file from this Git repo (here) and save it as a file named
multi_test.yaml
.Publish this template to your local project.
- Process the Template and Create the Application
- Process the template with the following custom parameters and then create the application using the processed template.
NAME=fruit-stand
DATABASE_NAME=fruit_stand
DATABASE_USER=guru
DATABASE_PASSWORD=badpass
DATABASE_ADMIN_PASSWORD=badidea
- Verify the Application Is Working
- Open the application in a web browser and add a test entry into the inventory page.