mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
19 lines
501 B
Plaintext
19 lines
501 B
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * openshift_images/using-templates.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="templates-cli-labels_{context}"]
|
|
= Adding labels
|
|
|
|
Labels are used to manage and organize generated objects, such as pods. The labels specified in the template are applied to every object that is generated from the template.
|
|
|
|
.Procedure
|
|
|
|
* Add labels in the template from the command line:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc process -f <filename> -l name=otherLabel
|
|
----
|