OpenShift Template Operations: Difference between revisions
Jump to navigation
Jump to search
Line 24: | Line 24: | ||
oadm create-bootstrap-project-template -o yaml > new-project-template.yaml | oadm create-bootstrap-project-template -o yaml > new-project-template.yaml | ||
It will produce a file similar to this: [[OpenShift Default New Project Template| | It will produce a file similar to this: [[OpenShift Default New Project Template|default new project template]] | ||
2. The file content can be modified by adding new objects or modifying existing objects. | |||
3. Once the template has been modified, it must be loaded into the [[OpenShift_Concepts#Default_Project|default]] namespace. |
Revision as of 21:05, 2 November 2017
Internal
Get a List of Templates for a Specific Project
oc get templates -n openshift
Upload a Template to the Current Project
oc create -f <template-file.json|yaml>
Creating a Template
Modify the Template for New Projects
1. Start with the current default project template:
oadm create-bootstrap-project-template -o yaml > new-project-template.yaml
It will produce a file similar to this: default new project template
2. The file content can be modified by adding new objects or modifying existing objects.
3. Once the template has been modified, it must be loaded into the default namespace.