r/openstack • u/greenFox99 • Jun 30 '25
Openstack L2 Loadbalancer
Edit: That's not L2 LB, but just LB with members of the pool being able to access the source IP from the regular IP header.
Hello!
I setup Kubernetes in an openstack public cloud. Everything goes well, until I try to setup an ingress controller (nginx).
The thing is, I have multiple nodes that can answer all HTTPS requests. So I guess that's good to have a loadbalancer with a floating IP in front of it. However Octavia doesn't seem to support loadbalacing without unwrapping a packet and rewrap it to the endpoint. That technically works, but all HTTP requests come from Octavia's IP, so I can't filter the content based on my office public IP.
I could use Octavia as a reverse proxy, however that means I have to manage certificates in Kubernetes and Octavia in parallel, and I would like to avoid spreading certificates everywhere.
I could also setup a small VM with failover that acts as an L2 loadbalancer (just doesn't change source IP).
And for security purpose, I don't want my Kubernetes cluster to call openstack's API.
I setup MetalLB, which is nice but only support failover since I don't have BGP peers.
I found this nice doc, but it didn't help me: https://docs.openstack.org/octavia/rocky/user/guides/basic-cookbook.html
So I was wondering if some people here know a way to do L2 load balancing or just loadbalacing without modifying the source IP?
Thank you
View all comments
Show parent comment
0
u/greenFox99 Jun 30 '25
I tried that too, and it worked, but that means I need to give openstack credentials to Kubernetes. Which is a security risk I am not willing to take. Kubernetes manages upper level applications great but I don't want it to be able manage my openstack project. That's like giving control over an hypervisor to a VM inside of it, I'm not fan of the design.