squat / kilo

Kilo is a multi-cloud network overlay built on WireGuard and designed for Kubernetes (k8s + wg = kg)
https://kilo.squat.ai
Apache License 2.0
2.01k stars 120 forks source link

AWS VPC peering #58

Open tuapuikia opened 4 years ago

tuapuikia commented 4 years ago

Is it possible to use AWS VPC peering between two region? I have 2 separate k8s cluster on different region and both VPC is connected using peering network.

Can I use node internal IP for wireguard connectivity ?

squat commented 4 years ago

hi @tuapuikia yes, you can use the internal IP as the endpoint for the WireGuard. To do this, set the kilo.squat.ai/force-endpoint annotation (https://kilo.squat.ai/docs/annotations#force-endpoint) on the nodes that should be the gateways/leaders and use the internal IP + port. To ensure that these nodes are actually selected as the leaders, you can also set the kilo.squat.ai/leader annotation