// Module included in the following assemblies:
//
// * cloud_experts_tutorials/cloud-experts-consistent-egress-ip.adoc

:_mod-docs-content-type: PROCEDURE
[id="cloud-experts-consistent-egress-ip-node-labels_{context}"]
= Label the nodes

[role="_abstract"]
Apply labels to worker nodes for egress IP assignments.

.Procedure
. Obtain your pending egress IP assignments by running the following command:
+
[source,terminal]
----
$ oc get egressips
----
+
.Example output
[source,terminal]
----
NAME              EGRESSIPS       ASSIGNED NODE   ASSIGNED EGRESSIPS
demo-egress-ns    10.10.100.253
demo-egress-pod   10.10.100.254
----
+
The egress IP rule that you created only applies to nodes with the `k8s.ovn.org/egress-assignable` label. Make sure that the label is only on a specific machine pool.

. Assign the label to your machine pool using the following command:
+
[WARNING]
====
If you rely on node labels for your machine pool, this command will replace those labels. Be sure to input your desired labels into the `--labels` field to ensure your node labels remain.
====
+
[source,terminal]
----
$ rosa update machinepool ${ROSA_MACHINE_POOL_NAME} \
  --cluster="${ROSA_CLUSTER_NAME}" \
  --labels "k8s.ovn.org/egress-assignable="
----