Creating a custom template
In most cases, developers use the predefined OpenShift templates that come with the OpenShift installation; however, at times they don't suit a particular case, so a customized template has to be developed. In this section, we will provide you with an overview of how to create your own template.
Developing YAML/JSON template definitions
If you are familiar with the template layout, you might want to develop a template from scratch, using a standard YAML or JSON-based file. This method will allow you to create a clean template, without any runtime data.
Some of OpenShift's features may speed up the process of template development. For example, oc explain
allows you to explore the syntax of all OpenShift API objects, serving as a form of documentation.
If given no parameters, oc explain
lists all of the kinds of resources supported by the current version of OpenShift:
# oc explain
You must specify the type of resource to explain. Valid resource types include:
* all...