Oc new-app: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 17: Line 17:


To set multiple labels:
To set multiple labels:
oc new-app -l 'key1=value1,key2=value2,key3=value3' ...
{{Warn|Do not use spaces within the -l '...'}}

Revision as of 00:38, 26 November 2017

Internal

Overview

new-app is a command that generates a JSON/YAML configuration. For more details see:

Application Operations

Options

-l, --labels

To set a single label on all objects of the new application:

oc new-app -l 'key1=value1' ...

To set multiple labels:

oc new-app -l 'key1=value1,key2=value2,key3=value3' ...

Do not use spaces within the -l '...'