// Module included in the following assemblies:
//
// * rosa_learning/creating_cluster_workshop/learning-getting-started-managing-worker-nodes.adoc
:_mod-docs-content-type: PROCEDURE
[id="learning-getting-started-learning-machine-pool-node-labels_{context}"]
= Adding node labels

[role="_abstract"]
You can add node labels to your machine pools by using the {rosa-cli}.

.Procedure
* Use the following command to add node labels:
+
[source,terminal]
----
$ rosa edit machinepool --cluster=<cluster-name> --replicas=<number-nodes> --labels='key=value' <machinepool-name>
----
+
*For example*:
+
[source,terminal]
----
$ rosa edit machinepool --cluster=my-rosa-cluster --replicas=2 --labels 'foo=bar','baz=one' new-mp
----
+
This adds 2 labels to the new machine pool.
+
[IMPORTANT]
====
This command replaces all machine pool configurations with the newly defined configuration. If you want to add another label *and* keep the old label, you must state both the new and preexisting the label. Otherwise the command will replace all preexisting labels with the one you wanted to add. Similarly, if you want to delete a label, run the command and state the ones you want, excluding the one you want to delete.
====