# Cannot join "Master"

**URL:** <https://discuss.kubernetes.io/t/cannot-join-master/23867>\
**Category:** General Discussions\
**Created:** [April 16, 2023, 8:21am UTC](https://discuss.kubernetes.io/t/cannot-join-master/23867 "2023-04-16T08:21:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wanderer](https://avatars.discourse-cdn.com/v4/letter/w/a9a28c/32.png) [@wanderer](https://discuss.kubernetes.io/u/wanderer)\
**Post date:** [April 16, 2023, 8:21am UTC](https://discuss.kubernetes.io/t/cannot-join-master/23867/1 "2023-04-16T08:21:55Z")

</div>

Hi there,  
I used `kubeadm init` to create my master node successfully, but when I tried to use commanc `kubeadm join` on my other node I got the error below:

 ![2023-04-16 16_18_06](https://us1.discourse-cdn.com/flex016/uploads/kubernetes/original/2X/d/dcf271ce9a517a2f148e338c32f1ea77e56e0503.png)

The node could not join master node and it said “unauthorized” error.

Please suggest how to solve this. Thanks in advance!

---

<div class="post-metadata">

**Author:** ![mag1](https://avatars.discourse-cdn.com/v4/letter/m/c5a1d2/32.png) [@mag1](https://discuss.kubernetes.io/u/mag1)\
**Post date:** [April 24, 2023, 7:51am UTC](https://discuss.kubernetes.io/t/cannot-join-master/23867/2 "2023-04-24T07:51:12Z")

</div>

Seems you either didn’t specify … or your token has expired (somehow). Anyway, in such a case get a new one and try joining again:

On you Control-Plane execute:  
`token create --print-join-command`

This will generate not only a new cluster-toke but also print out the command you’ll need to execute on your worker node to join the cluster.

Finally set the correct role - e.g.:  
`kubectl label node <k8s-worker1> node-role.kubernetes.io/worker=worker`
