root@kube-master-node:/kube# kubectl get no
NAME STATUS ROLES AGE VERSION
kube-master-node Ready control-plane 80m v1.31.2
kube-worker1 Ready <none> 54m v1.31.2
kube-worker2 Ready <none> 54m v1.31.2
root@kube-master-node:/kube# kubectl label node kube-worker1 node-role.kubernetes.io/worker=
node/kube-worker1 labeled
root@kube-master-node:/kube# kubectl get no
NAME STATUS ROLES AGE VERSION
kube-master-node Ready control-plane 82m v1.31.2
kube-worker1 Ready worker 55m v1.31.2
kube-worker2 Ready <none> 55m v1.31.2
root@kube-master-node:/kube# kubectl label node kube-worker2 node-role.kubernetes.io/worker=
node/kube-worker2 labeled
root@kube-master-node:/kube# kubectl get no
NAME STATUS ROLES AGE VERSION
kube-master-node Ready control-plane 82m v1.31.2
kube-worker1 Ready worker 56m v1.31.2
kube-worker2 Ready worker 56m v1.31.2
root@kube-master-node:/kube# kubectl label node kube-master-node node-role.kubernetes.io/master=
node/kube-master-node labeled
root@kube-master-node:/kube# kubectl get no
NAME STATUS ROLES AGE VERSION
kube-master-node Ready control-plane,master 82m v1.31.2
kube-worker1 Ready worker 56m v1.31.2
kube-worker2 Ready worker 56m v1.31.2
root@kube-master-node:/kube#
root@kube-master-node:/kube# kubectl label node kube-worker1 node-role.kubernetes.io/worker-
node/kube-worker1 unlabeled
root@kube-master-node:/kube# kubectl get no
NAME STATUS ROLES AGE VERSION
kube-master-node Ready control-plane,master 88m v1.31.2
kube-worker1 Ready <none> 61m v1.31.2
kube-worker2 Ready worker 61m v1.31.2
root@kube-master-node:/kube# kubectl label node kube-worker1 node-role.kubernetes.io/worker=
node/kube-worker1 labeled
root@kube-master-node:/kube# kubectl get no
NAME STATUS ROLES AGE VERSION
kube-master-node Ready control-plane,master 90m v1.31.2
kube-worker1 Ready worker 63m v1.31.2
kube-worker2 Ready worker 63m v1.31.2
root@kube-master-node:/kube#