Creating an OpenShift Application from Source

30 minutes
  • 4 Learning Objectives

About this Hands-on Lab

In this scenario, you have been tasked with making sure that a simple Apache web page can be built from a Git repository using a new OpenShift cluster.

*This lab is not approved or sponsored by Red Hat.*

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create the New Project
  1. Create a new project with the name llama-cart-test and a display name of Llama Cart Racing test.

Note: This section only applies to local users of the OpenShift environment. Remote access users should skip this section.

Create the New Application
  1. Create a new application using the httpd image stream and the Git repository https://github.com/linuxacademy/Red-Hat-Certified-Specialist-in-Containers-and-Kubernetes/llama_cart.
  2. Name the application llama-cart-racing.
  3. Give all app resources the label racing-test.
Create a New Route
  1. Create a new route to the application by exposing the new service.
Test the Web Page
  1. Make sure that the web page is accessible.

Additional Resources

Logging In to the Lab Environment

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 at https://developers.redhat.com/login.
  2. Once registered, you may complete the lab steps using one of the following methods:

Scenario

In this scenario, you have been tasked with making sure that a simple Apache web page can be built from a Git repository using a new OpenShift cluster. The client would like you to complete the following tasks:

  1. Create a project with the name llama-cart-test. The display name should be Llama Cart Racing test.
  2. Create a new http application in the project with the following configuration:
    • Uses the image stream httpd to build the application.
    • Uses the client-provided Git repository with the context directory llama_cart.
    • The application name should be llama-cart-racing.
  3. Label app resources with racing-test.
  4. Create a route by exposing the new service.
  5. Test that the new Apache application is available and the web page can be accessed.

What are Hands-on Labs

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.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?