https://rancher.com/ logo
Title
b

billions-garden-37463

12/16/2022, 11:33 AM
Hi everyone, so I’m trying to create a kubernetes cluster that can allow be add servers from different provider(aws, azure, DO) as worker nodes, has anyone tried creating a kubernetes cluster using a custom provider and then tried to add an AWS EC2 node as a worker node using the “sudo docker …” command? I tried it but it’s not working, Digital ocean was added successfully and works but not AWS EC2
a

agreeable-waiter-30020

12/16/2022, 12:37 PM
There may be many issues with doing something like this. Two come to mind immediately. The security group the EC2 node is in must be configured to allow the necessary traffic in and out of the node. The default node IP address for the EC2 node is its internal IP address. The DO nodes won’t be able to use this. The EC2 node would need to be configured to use its external IP address.
b

billions-garden-37463

12/16/2022, 12:38 PM
SG allows traffic from anywhere for both inbound and outbound.
The node gets added successfully but every pod scheduled crashes intermittently
a

agreeable-waiter-30020

12/16/2022, 1:20 PM
Are there any errors when the pod crashes?
b

billions-garden-37463

12/16/2022, 4:08 PM
The pod crashes because it’s not able to connect to mongodb atlas But I also noticed a lot of rancher agent containers been created on that server, last count was over 30
a

agreeable-waiter-30020

12/16/2022, 4:13 PM
Interesting. Sounds like a networking issue to me, but I’m not privy to your setup. A wise person once told me, “If you don’t think it’s the security groups, check the security groups.”
b

billions-garden-37463

12/16/2022, 4:14 PM
I’ll recheck the SG. Thank you @agreeable-waiter-30020
Just trying to see if I can create a cluster with nodes from different providers
a

agreeable-waiter-30020

12/16/2022, 4:15 PM
It should be possible with a little configuration magic.
b

billions-garden-37463

12/16/2022, 4:16 PM
Thank you, I’ll keep on troubleshooting