Add label to nodes:
$ kubectl label nodes 10.xx.xx.xx key1=val1
If I want to delete label(key1=val1) on node(10.xx.xx.xx), how
label(key1=val1)
Below command worked for me to remove label:
kubectl label node -
Note: The syntax is a minus sign directly after the key. For example, if the node name is worker1 and the label is system=workernode, you can remove a label with the following command.
kubectl label node worker1 system-