1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/templates-cli-labels.adoc
2021-04-26 18:35:49 -04:00

18 lines
466 B
Plaintext

// Module included in the following assemblies:
//
// * openshift_images/using-templates.adoc
[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
----