loxilb-io / loxilb

eBPF based cloud-native load-balancer for Kubernetes|Edge|Telco|IoT|XaaS.
https://www.loxilb.io
Apache License 2.0
1.36k stars 108 forks source link

Support for AWS multi-AZ #681

Closed UltraInstinct14 closed 3 months ago

UltraInstinct14 commented 3 months ago

Is your feature request related to a problem? Please describe.

If loxilb runs in two instances with each instance in a different VPC or AZ, currently the same VIP for communication can't be maintained.

Describe the solution you'd like loxilb instances should be able to run in different VPCs/AZ with the same VIP CIDR

Describe alternatives you've considered N/A

Additional context

There is high-level AWS design pattern how this could be achieved.

TrekkieCoder commented 3 months ago

ElasticIP needs to be reassociated to active EC2 instance. For fullNAT mode to work, a private CIDR needs to be associated with loxi instances. The privateCIDR also needs to migrate to active VPC.

backguynn commented 3 months ago

Overall pattern is as follows -

loxilb-k8s-arch-Multi-AZ-HA

The following is an example HA configuration. Kindly change the instance's IP and subnet settings as per need.

VPC CIDR: 192.168.0.0/16
loxilb instance1: 192.168.218.87
loxilb instance2: 192.168.228.79
Elastic IP: 15.168.149.225
private subnet: 192.168.248.0/24
private IP associated with EIP: 192.168.248.254

Setting up kube-loxilb

Setting up loxilb instances

TrekkieCoder commented 3 months ago

Multi-VPC support is yet to be validated hence currently limited to multi-AZ in same VPC !!