Chapter 3. Running Workloads on OpenShift

At this point you should already have an OpenShift cluster that you can use to deploy applications. It may be a cluster running on VMs provisioned by a cloud provider or even a small cluster on your notebook using OpenShift Local. You can access the console and log in to the cluster with the oc command-line utility. But how do you deploy an application that your team built to the cluster?

Most applications running on OpenShift clusters are web-based. Such applications are usually accessed by users via a web browser, or as backends by apps installed to user-owned devices. For the sake of this chapter you can use an arranged deployment consisting of three different services to practice deploying application code to your OpenShift cluster. A small OpenShift Local cluster should provide enough capacity to deploy this application. However, to follow some parts of the chapter you will need a cluster that is accessible externally.

The application used in this chapter is the arcade gaming platform of a fictitious game publisher. It consists of the following components:

  • Games, each running in its own service (for now there is only one game).

  • A highscore service where the scores of every game and player can be shown.

  • The platform service, used as entry point where customers can browse, start, and purchase games.

Figure 3-1 gives you an overview of the involved components and how they interact.

Figure 3-1. Components of the ...

Get Operating OpenShift now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.