Repository navigation
feat: support dynamic RouteConfiguration expansion for multi-tunnel gateways - #3338
Closed
MircoBarone wants to merge 1 commit into
Closed
MircoBarone wants to merge 1 commit into
MircoBarone wants to merge 1 commit into
Conversation
Collaborator
|
Hi @MircoBarone. Thanks for your PR! I am @adamjensenbot.
Make sure this PR appears in the liqo changelog, adding one of the following labels:
|
MircoBarone
force-pushed
the
PR14-multitunnel-gw-node
branch
from
July 24, 2026 11:03
1b696fb to
2e1dce5
Compare
16 of 17 tasks
MircoBarone
force-pushed
the
PR14-multitunnel-gw-node
branch
from
July 24, 2026 11:36
2e1dce5 to
ca152d6
Compare
- Expand <node>-gw-node and <node>-extcidr routes using a placeholder resolved by the gateway based on interface count
MircoBarone
force-pushed
the
PR14-multitunnel-gw-node
branch
from
August 19, 2026 18:29
ca152d6 to
ff1fd7c
Compare
MircoBarone
marked this pull request as draft
August 19, 2026 18:38
MircoBarone
marked this pull request as ready for review
August 20, 2026 17:19
MircoBarone
marked this pull request as draft
August 25, 2026 20:21
Contributor
Author
|
Closed in favor of #3363 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of the multi-tunnel WireGuard implementation (8th PR related to #3225).
When managing return traffic from WireGuard gateway interfaces to cluster pods, routing rules are defined in RouteConfiguration resources (e.g., --gw-node and -extcidr). These resources are created during the initial Liqo installation, before peering occurs, and are shared across all gateways.
Previously, these resources used a hardcoded incoming interface (
iif: liqo-tunnel).In a multi-tunnel setup:
To address this, this PR introduces a dynamic placeholder mechanism (
liqo-tunnel*) in the RouteConfiguration resources. Each gateway's RouteConfigurationBinding controller expands the placeholder locally according to its configured number of WireGuard interfaces.Changes
--num-interfacesflag (default:1) to the gateway container. The value is populated in both gateway client and server templates based on the number of ports.--num-interfaces >= 1.internalnode_k8s.goandpod_k8s.goto generate RouteConfiguration resources usingiif: liqo-tunnel*instead of the staticiif: liqo-tunnel.RouteConfigurationBindingReconcilerto store both the tunnel interface prefix and the list of concrete tunnel interface names for the local gateway instance (e.g.,liqo-tunnel0,liqo-tunnel1).expandRules()inRouteConfigurationBindingReconciler.Reconcile()to expandiif: liqo-tunnel*placeholder rules into one rule per local WireGuard interface before applying kernel routing rules and routes.