Files
ubicloud/migrate/20250324_add_loadbalancer_ports.rb
mohi-kalantari 7fe566e13a Write migrations for LoadBalancerPort & LoadBalancerVmPort models
Currently our loadbalancers only support one port. For k8s ingress controllers
we needed to have multiple ports per lb and that was the motivation for this change.

Each LB can have multiple ports as LoadBalancerPort holds a FK to LoadBalancer table

Also in order to implement the healthcheck logic for ecah port, we needed to keep track of
the state of this tuple (lb, port, vm). For that reason, we needed a new table which has
foreign keys to LoadBalancerPort and LoadBalancersVms table and also holds the state.

New logic can be implemented on top of this design.
2025-03-25 11:02:41 +01:00

2.8 KiB