How to add Master Role to a node?

Asking for help? Comment out what you need so we can get more information to help you!

Cluster information:

Kubernetes version: 1.29.2
Cloud being used: (put bare-metal if not on a public cloud)
Installation method: manual
Host OS: almalinux 9
CNI and version: 1.30
CRI and version: 1.29

You can format your yaml by highlighting it and pressing Ctrl-Shift-C, it will make your output easier to read.

# kubectl get nodes
NAME     STATUS   ROLES           AGE     VERSION
k8sn22   Ready    <none>          6d21h   v1.29.2
k8sn23   Ready    control-plane   6d21h   v1.29.2
k8sn24   Ready    control-plane   6d21h   v1.29.2
k8sn25   Ready    worker          6d21h   v1.29.2
k8sn26   Ready    worker          6d21h   v1.29.2
k8sn27   Ready    worker          6d21h   v1.29.2

For example how to add control-plane and mater to Node: k8sn22

found it:

kubectl label node k8sn22 node-role.kubernetes.io/master=master