Oc create: Difference between revisions
Jump to navigation
Jump to search
Line 31: | Line 31: | ||
Service accounts can be created as follows: | Service accounts can be created as follows: | ||
echo '{"kind":"ServiceAccount","apiVersion":"v1","metadata":{"name":"registry"}}' | oc create -n default -f - |
Revision as of 22:50, 5 July 2017
Internal
Overview
Creating a Resource Quota
oc create -f quota-def-file.json --namespace=my-project
Really? It sounds like creating the objects in specified in the file.
Uploads a Template to the Project Template Library
oc create -f template-file.json
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.
Create a Service Account
Service accounts can be created as follows:
echo '{"kind":"ServiceAccount","apiVersion":"v1","metadata":{"name":"registry"}}' | oc create -n default -f -