# How to add Master Role to a node?

**URL:** <https://discuss.kubernetes.io/t/how-to-add-master-role-to-a-node/27533>\
**Category:** General Discussions\
**Created:** [March 20, 2024, 6:23am UTC](https://discuss.kubernetes.io/t/how-to-add-master-role-to-a-node/27533 "2024-03-20T06:23:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![k8sn00b](https://avatars.discourse-cdn.com/v4/letter/k/96bed5/32.png) [@k8sn00b](https://discuss.kubernetes.io/u/k8sn00b)\
**Post date:** [March 20, 2024, 6:23am UTC](https://discuss.kubernetes.io/t/how-to-add-master-role-to-a-node/27533/1 "2024-03-20T06:23:06Z")

</div>

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.

```auto
# 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

---

<div class="post-metadata">

**Author:** ![k8sn00b](https://avatars.discourse-cdn.com/v4/letter/k/96bed5/32.png) [@k8sn00b](https://discuss.kubernetes.io/u/k8sn00b)\
**Post date:** [March 20, 2024, 6:30am UTC](https://discuss.kubernetes.io/t/how-to-add-master-role-to-a-node/27533/2 "2024-03-20T06:30:08Z")

</div>

found it:

kubectl label node k8sn22 [node-role.kubernetes.io/master=master](http://node-role.kubernetes.io/master=master)
