The SOR feature in the ULB isolates outbound traffic using routing tables and rules. For applications that require outbound traffic isolation, the network administrator creates an SOR CR that specifies the next-hop (gateway IP address) and device (network interface). The load balancer and endpoint custom resources reference this SOR CR to manage routing.
-
Network administrator creates an SOR CR specifying next-hop and device.
-
ULB assigns routing table ID and configures routes.
-
Load balancer and endpoint custom resources reference the SOR CR.
Summary
The main actors and components involved in this process are:
-
Network administrator: Creates and manages SOR CRs for outbound traffic isolation.
-
ULB (Unified Load Balancer): Assigns routing table IDs and configures routes based on SOR CRs.
-
Load balancer and endpoint custom resources: Reference SOR CRs to manage routing for associated pods.
This process ensures that outbound traffic from pods is routed through the specified gateway, enabling controlled and efficient routing for outbound requests.
Workflow
These stages describe how the SOR feature manages outbound traffic routing using SOR CRs and routing tables.
- The network administrator creates an SOR CR specifying the next-hop (gateway IP address) and device (network interface).
- The ULB assigns a unique routing table ID and configures routes using the specified next-hop and device.
- Load balancer and endpoint custom resources reference the SOR CR to manage routing for associated pods.
- IP rules are set so that pod traffic uses the corresponding routing table. Updates or deletions of pods trigger changes or removal of these IP rules. Iptables are adjusted for load balancer events.
- When a pod generates outbound traffic, the routing table linked to the SOR CR ensures the traffic is sent through the configured gateway.