- Lab
- A Cloud Guru
Setting Up Multi-Container Applications in OpenShift
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.*
Path Info
Table of Contents
-
Challenge
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).
-
-
Challenge
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.
-
-
Challenge
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
-
Challenge
Verify the Application Is Working
- Open the application in a web browser and add a test entry into the inventory page.
What's a lab?
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.