Oc create: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 30: Line 30:
=Create a Service Account=
=Create a Service Account=


[[OpenShift_Security_Concepts#Service_Account|Service accounts]] can be created as follows:
{{Internal|OpenShift_Security_Operations#Create_a_New_Service_Account|Create a Service Account}}
echo '{"kind":"ServiceAccount","apiVersion":"v1","metadata":{"name":"registry"}}'  | oc create -n default -f -

Revision as of 20:48, 18 October 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

Create a Service Account