Difficulty: beginner
Estimated Time: 10-15 minutes

Goal

Learn how to enumerate, describe, and update application resource objects on OpenShift.

Concepts

  • OpenShift Projects and Applications
  • Applications on OpenShift as Builds and Deployments
  • Application resources like Services, Persistent Volumes, and configuration
  • OpenShift oc command line tool

Use case

You can find, query, and change the OpenShift resources that make up an application.

This OpenShift cluster will self-destruct in one hour.

In this course you learned about oc commands you would use for querying and updating the resource objects that OpenShift uses to track the state of the cluster.

Continue Learning

You can continue learning more about OpenShift and how to develop applications on the platform by completing other tutorials at https://learn.openshift.com.

For developer-related resources about OpenShift, visit https://developers.redhat.com/products/openshift/getting-started.

Run OpenShift Locally with CodeReady Containers

CodeReady Containers allows you to run a minimal, pre-configured OpenShift 4 cluster on your local machine. The project supports Windows 10, macOS, and Linux. To find out more or download CodeReady Containers, visit https://developers.redhat.com/products/codeready-containers/overview

Compare Hosted, Managed, or On Premises OpenShift

Learn more about the different OpenShift platform variants here: https://www.openshift.com/products

Browse the Documentation

If you want to learn about particular OpenShift concepts in more depth, visit the documentation: https://docs.openshift.com/container-platform/latest

Using the CLI to Manage Resource Objects

Step 1 of 8

Topic 1 - Deploying an Application

Before you can start this course you need to deploy a sample application to work with.

The first step is to ensure you are logged in as the developer user.

oc login --username developer --password developer

Next create a new project to add the application to, by running:

oc new-project myproject

This should automatically switch you to the new project, so you are ready to deploy the application.

The application you are going to deploy is the ParksMap web application used in the Getting Started with OpenShift for Developers Katacoda course.

oc new-app openshiftroadshow/parksmap-katacoda:1.2.0 --name parksmap

By default when using oc new-app from the command line to deploy an application, the application will not be exposed to the public. As our final step you therefore need to expose the service so that people can access it.

oc expose svc/parksmap

You are now ready to start investigating the resource objects which were created.