Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workers node can't ping to each other #396

Open
songoten28 opened this issue Nov 27, 2024 · 0 comments
Open

Workers node can't ping to each other #396

songoten28 opened this issue Nov 27, 2024 · 0 comments

Comments

@songoten28
Copy link

songoten28 commented Nov 27, 2024

I'm trying setting up 4 PC become 1 network inside VPN:

1 AWS: public IP: 57.130.54.170:51820 ( name: ip-172-26-4-213, Internal IP: 172.26.4.213 )
3 PC: Inside NAT network and we can't open Upnp to forwarding port (Home Network)

I've add 3 annotation for each node like this:

kubectl annotate node $node kilo.squat.ai/location=$node kilo.squat.ai/persistent-keepalive=10 kilo.squat.ai/force-endpoint=57.130.54.170:51820

this one will create full mesh network. And aws can ping to each worker node, but worker nodes can't ping each other

when I try to get wireguard config from PC in nat network

[Interface]
ListenPort = 51820

[Peer]
AllowedIPs = 10.42.6.0/24, 192.168.104.23/32, 10.4.0.1/32
Endpoint = 117.2.120.27:51820
PersistentKeepalive = 10
PublicKey = Ms2vIRAOqWZI3IRyhhubChN8pamvJT/Ctz3NPDtwjzY=

[Peer]
AllowedIPs = 10.42.2.0/24, 172.26.4.213/32, 10.4.0.2/32
Endpoint = 57.130.54.170:51820
PersistentKeepalive = 10
PublicKey = //A0GY434mNTe4ZVKlmM/em1k9nppJLRmFNtRUPNHBU=

[Peer]
AllowedIPs = 10.42.4.0/24, 192.168.103.72/32, 10.4.0.4/32
Endpoint = 117.3.83.42:51820
PersistentKeepalive = 10
PublicKey = 8SufnPe9OTpB5MjjTnRuOpAbk47ohyHNLap4VyEhWwI=

From setting above this setting is a reason. Because It dont have open 51820 port on home network

I think to make all nodes in same network it shoud be like this for each worker node

[Interface]
ListenPort = 51820

[Peer]
AllowedIPs = 10.42.0.0/16, 172.26.4.213/32   # this is also nginx ingress ip on running on AWS
Endpoint = 57.130.54.170:51820
PersistentKeepalive = 0
PublicKey = //A0GY434mNTe4ZVKlmM/em1k9nppJLRmFNtRUPNHBU=

here is my pods:
image

Do we have anyway option to do like way?

I already try to following this way
https://kilo.squat.ai/docs/api#peer
but it's not work.

Does anyone have an idea on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant