# Cannot join 2 aws ec2 kuberenetes nodes

**URL:** <https://discuss.kubernetes.io/t/cannot-join-2-aws-ec2-kuberenetes-nodes/30766>\
**Category:** General Discussions\
**Created:** [December 9, 2024, 10:42am UTC](https://discuss.kubernetes.io/t/cannot-join-2-aws-ec2-kuberenetes-nodes/30766 "2024-12-09T10:42:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Josep\_Maria](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/josep_maria/32/16411_2.png) [@Josep\_Maria](https://discuss.kubernetes.io/u/Josep_Maria)\
**Post date:** [December 9, 2024, 10:42am UTC](https://discuss.kubernetes.io/t/cannot-join-2-aws-ec2-kuberenetes-nodes/30766/1 "2024-12-09T10:42:10Z")

</div>

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

### Cluster information:

Kubernetes version:v1.30  
Cloud being used: aws  
Installation method:kubeadm=1.30.1-1.1 kubelet=1.30.1-1.1 kubectl=1.30.1-1.1  
Host OS: Ubuntu  
CNI and version: cilium --version 1.16.1  
CRI and version: containerd

I have 2 nodes (CP and Worker node), both set up on aws t2.large, using default VPC. The SG created for the CP (new, default parameters) was also used to created the Worker node. Both have an identical kubernetes configuration.

I have set up file nano /etc/hosts os it includes

```auto
xx.xx.xx.xx k8scp #<----- cp node
xx.xx.xx.xx worker #<----- worker node
127.0.0.1 localhost

```

Then I copy the output of the following command entered on the CP node  
`sudo kubeadm token create --print-join-command`

and I paste it on the CLI of the Worker node, by adding at the end of above output ` --node-name=worker`

 ![Screenshot 2024-12-09 at 11.37.11](https://us1.discourse-cdn.com/flex016/uploads/kubernetes/original/3X/3/f/3f87560473fd4ff866e6270cc720764fe89763d4.png)

I would appreciate if somene could help me out. Thank you.

---

<div class="post-metadata">

**Author:** ![fox-md](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/fox-md/32/10613_2.png) [@fox-md](https://discuss.kubernetes.io/u/fox-md)\
**Post date:** [December 9, 2024, 1:37pm UTC](https://discuss.kubernetes.io/t/cannot-join-2-aws-ec2-kuberenetes-nodes/30766/2 "2024-12-09T13:37:42Z")

</div>

Hi,  
Worth checking security group and make sure that port 6443 is reachable.

---

<div class="post-metadata">

**Author:** ![Josep\_Maria](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/josep_maria/32/16411_2.png) [@Josep\_Maria](https://discuss.kubernetes.io/u/Josep_Maria)\
**Post date:** [December 9, 2024, 2:01pm UTC](https://discuss.kubernetes.io/t/cannot-join-2-aws-ec2-kuberenetes-nodes/30766/3 "2024-12-09T14:01:03Z")

</div>

@fox-md thank you  
I added another inbound rule custom tcp pot 6443 on the SG and it worked.
