$ kubectl label nodes worker1 node-role.kubernetes.io/worker=
node/worker1 labeled
$ k get nodes
NAME STATUS ROLES AGE VERSION
control1 Ready control-plane 19d v1.26.0
worker1 Ready worker 19d v1.26.0
worker2 Ready 19d v1.26.0
Iordanis Kazanas – Virtual Systems Administrator
$ kubectl label nodes worker1 node-role.kubernetes.io/worker=
node/worker1 labeled
$ k get nodes
NAME STATUS ROLES AGE VERSION
control1 Ready control-plane 19d v1.26.0
worker1 Ready worker 19d v1.26.0
worker2 Ready 19d v1.26.0