Previously, you learned how to run a standalone container in OpenShift. In the real world, almost all applications are composed of multiple interconnected containers. For example, the WordPress container requires access to a database instance. OpenShift provides a facility that lets you pack everything related to your application into a single object, called a template, and deploy everything at once by processing that template. The basic template concept was explained in Chapter 9, Advanced OpenShift Concepts, and it is very similar to Docker Compose. This chapter will be a hands-on lab experiment, illustrating how to use OpenShift templates to deploy applications. The upcoming labs will show you, in detail, how to create a multi-tier application from scratch.
In this chapter, we will cover the following topics:
- An OpenShift...