Oc create: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(12 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
=Overview= | =Overview= | ||
=Command Line Usage= | |||
oc create can be used from command line, combined with echo, to create OpenShift object while experimenting. You can copy-and-paste a multi-line YAML declaration, and then use: | |||
echo "''paste''" | oc create -f - | |||
=Creating a Resource Quota= | =Creating a Resource Quota= | ||
{{Internal|OpenShift_Resource_Management_Operations#Creating_a_Resource_Quota|Creating a Resource Quota}} | |||
=Uploads a Template to the Project Template Library= | |||
oc create -f template-file.json | |||
oc process -f ./file.yaml [--param PARAM1=value1 ...] | oc create -f - | |||
=Create a S2I Build= | |||
<pre> | <pre> | ||
oc create -f | oc new-app -o json ... | ||
oc create -f .../s2i.json | |||
</pre> | </pre> | ||
=a= | <tt>oc new-app</tt> should be used to create the build directly, this is the preferred approach. | ||
=Create a Service Account= | |||
{{Internal|OpenShift_Security_Operations#Create_a_New_Service_Account|Create a Service Account}} |
Latest revision as of 18:06, 1 February 2018
Internal
Overview
Command Line Usage
oc create can be used from command line, combined with echo, to create OpenShift object while experimenting. You can copy-and-paste a multi-line YAML declaration, and then use:
echo "paste" | oc create -f -
Creating a Resource Quota
Uploads a Template to the Project Template Library
oc create -f template-file.json
oc process -f ./file.yaml [--param PARAM1=value1 ...] | oc create -f -
Create a S2I Build
oc new-app -o json ... oc create -f .../s2i.json
oc new-app should be used to create the build directly, this is the preferred approach.