Skip to content

Allow NLB backends by address within a VPC - #845

Open
scotwells wants to merge 2 commits into
mainfrom
codex/nlb-addresses-without-selector-galactic
Open

scotwells wants to merge 2 commits into
mainfrom
codex/nlb-addresses-without-selector-galactic

Conversation

@scotwells

@scotwells scotwells commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Ports address-only backend selection onto Galactic's current NetworkService API. A service can set backendAddresses without a label selector, or use the list to narrow a selector. Only attachments whose observed VPC matches vpcRef can contribute those IPv6 addresses. An explicit empty list selects no backends and withdraws their generated bindings. Gateway and binding reconcilers share the same selection function.

The branch was rebuilt on current main because the earlier base (#844) is closed and its NetworkRule contract has been replaced. The previous PR head is recoverable at d0b3820f07f9cb63989e9dcac566a9575297d476.

Integration dependencies

This PR provides backend selection, not an NSO NetworkLoadBalancerCellIntent adapter or a serving NLB path. NSO currently publishes non-serving Validate intents; a cell adapter must map them into Galactic resources and report readiness before VIP announcement or DNS publication.

Galactic currently uses Maglev flow hashing. The NLB proposal calls for round robin across healthy endpoints within a location. The serving path must implement that behavior or the proposal must change before it is enabled.

backendAddresses is capped at 64, matching Galactic's current dataplane backend limit. NSO intents currently permit up to 1,024 backends. The adapter must reject or explicitly handle larger endpoint sets; truncation would silently change service behavior.

This PR does not enable one backend address, port, protocol, and VIP family to serve multiple NLB VIPs. The current vip_xlat_table egress row can choose only one source VIP for that socket. ruleBackendOwners and ServiceVIPBindingReconciler still prevent a newer conflicting service from serving. Reuse needs a return-path design that preserves the chosen VIP per connection or flow, plus teardown and failover behavior. NSO must keep its backend-conflict gate until that path is implemented and acknowledged by serving cells.

Verification

  • CRD, deepcopy code, and API reference regenerated.
  • Added admission and backend-selection tests for address-only matching, VPC isolation, explicit empty-list withdrawal, and invalid IPv4 addresses.
  • CI build, lint, unit, root-unit, and E2E checks pass on the current head.

Related to datum-cloud/network-services-operator#611.

@scotwells
scotwells changed the base branch from codex/nlb-backend-addresses-galactic to main October 21, 2026 23:01
@scotwells
scotwells force-pushed the codex/nlb-addresses-without-selector-galactic branch from d0b3820 to 2079349 Compare October 21, 2026 23:10
privateip added a commit that referenced this pull request Nov 28, 2026
Draft #845 also changes the NetworkService backend rule. Note how
edgeListenerRef coexists with it and who reconciles the two.
@privateip
privateip marked this pull request as ready for review December 2, 2026 03:00
@privateip
privateip requested a review from a team as a code owner December 2, 2026 03:00
@privateip
privateip force-pushed the codex/nlb-addresses-without-selector-galactic branch from 201a25a to 6262868 Compare December 2, 2026 03:16
@privateip
privateip force-pushed the codex/nlb-addresses-without-selector-galactic branch from 6262868 to 479d50c Compare December 2, 2026 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant