Skip to content

Conversation

@simu
Copy link
Member

@simu simu commented Nov 5, 2025

This PR extends the component's egress policy support with an optional parameter bgp_policy_labels for each Egress IP range. When this parameter is provided and not empty, the component will generate egress policies which are suitable for BGP-backed egress IPs.

The component generates an egress group which specifies the egress IP directly and which has maxGatewayNodes: 1 for BGP-backed egress IPs.

Note that the component doesn't provide specialized support for configuring matching IsovalentBGPAdvertisement resources (yet) and the cluster operator must ensure that the egress IPs in a range which is configured as BGP-backed are assigned to an interface on all egress nodes.

Checklist

  • The PR has a meaningful title. It will be used to auto-generate the
    changelog.
    The PR has a meaningful description that sums up the change. It will be
    linked in the changelog.
  • PR contains a single logical change (to build a better changelog).
  • Update the documentation.
  • Categorize the PR by adding one of the labels:
    bug, enhancement, documentation, change, breaking, dependency
    as they show up in the changelog.

@simu simu added the enhancement New feature or request label Nov 5, 2025
@simu simu force-pushed the feat/namespace-egress-policy-dest-cidrs branch from 4ed770b to cfe50cd Compare November 5, 2025 13:30
@simu simu force-pushed the feat/namespace-egress-policy-bgp branch from c0e2cea to 01dc3eb Compare November 5, 2025 13:30
@simu simu force-pushed the feat/namespace-egress-policy-dest-cidrs branch from cfe50cd to d186e42 Compare November 5, 2025 13:31
@simu simu force-pushed the feat/namespace-egress-policy-bgp branch 2 times, most recently from 566dee7 to 9603e57 Compare November 5, 2025 15:58
Base automatically changed from feat/namespace-egress-policy-dest-cidrs to master November 7, 2025 09:36
@simu simu force-pushed the feat/namespace-egress-policy-bgp branch from 9603e57 to f51907d Compare November 7, 2025 09:37
@simu simu requested a review from a team November 7, 2025 09:37
simu added 4 commits November 10, 2025 17:12
For BGP-backed egress IPs, we don't configure the policy's egress IP
based on the computed interface, but instead directly specify the egress
IP in the policy. Additionally, we always set `maxGatewayNodes: 1` for
BGP-backed egress IPs.

Note that it's still the responsibility of the cluster operator to
ensure that all possible BGP-backed egress IPs are assigned to an
interface on each egress node.
We extend the Espejote managed resource Jsonnet to also read the egress
IP's range's `bgp_policy_labels` field when creating the egress policy.
@simu simu force-pushed the feat/namespace-egress-policy-bgp branch from f51907d to 940221c Compare November 10, 2025 16:12
Co-authored-by: Sebastian Widmer <sebastian.widmer@vshn.net>
@simu simu merged commit 7df5f9d into master Nov 11, 2025
25 checks passed
@simu simu deleted the feat/namespace-egress-policy-bgp branch November 11, 2025 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants