hostrouting: add ConfigureStaticRoutes and CheckRouteOverlap as phases.Task#159
Draft
hostrouting: add ConfigureStaticRoutes and CheckRouteOverlap as phases.Task#159
Conversation
…interface Agent-Logs-Url: https://github.com/Azure/AKSFlexNode/sessions/5ca5344a-9ba0-45c6-87d1-8144cc236f9c Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Reimplement PR 151 with new task interface
routing: add ConfigureStaticRoutes and CheckRouteOverlap as phases.Task
Apr 29, 2026
bcho
requested changes
Apr 29, 2026
| # Route install must happen before kubelet tries to reach cluster services | ||
| # whose CIDR may otherwise be shadowed by provider-installed connected | ||
| # routes (e.g. the Azure InfiniBand fabric /16 on ND-isr SKUs). | ||
| Before=kubelet.service |
Member
There was a problem hiding this comment.
there is no kubelet.service on the host in current impl. We should apply this before nspawn machine service instead.
Contributor
Author
There was a problem hiding this comment.
Fixed in 1b49cea. Both service files now use Before=systemd-nspawn@.service and RequiredBy=systemd-nspawn@.service (matching the pattern used by nftables-flush.service in the unbounded library), since kubelet.service lives inside the nspawn container, not on the host.
| Node NodeConfig `json:"node"` | ||
| Paths PathsConfig `json:"paths"` | ||
| Npd NPDConfig `json:"npd"` | ||
| Routing RoutingConfig `json:"routing"` |
Member
|
@chokevin do we have ways to test this feature without using real GPU sku? |
…ngConfig to HostRoutingConfig Agent-Logs-Url: https://github.com/Azure/AKSFlexNode/sessions/4c849c1e-b508-489a-b4f1-48bcc7921340 Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
bcho
requested changes
Apr 29, 2026
…routing.Tasks() call Agent-Logs-Url: https://github.com/Azure/AKSFlexNode/sessions/86762665-2776-4c32-80dc-b3c11d8c00bc Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
Copilot
AI
changed the title
routing: add ConfigureStaticRoutes and CheckRouteOverlap as phases.Task
hostrouting: add ConfigureStaticRoutes and CheckRouteOverlap as phases.Task
Apr 29, 2026
bcho
reviewed
Apr 29, 2026
bcho
requested changes
Apr 29, 2026
Agent-Logs-Url: https://github.com/Azure/AKSFlexNode/sessions/9d447331-0966-48e7-a81c-d83c446acc4b Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
|
|
||
| // runCmd runs the given command and logs its output via logger. | ||
| func runCmd(ctx context.Context, logger *slog.Logger, name string, args ...string) error { | ||
| cmd := exec.CommandContext(ctx, name, args...) //nolint:gosec // name is a constant binary path |
bcho
requested changes
Apr 29, 2026
Agent-Logs-Url: https://github.com/Azure/AKSFlexNode/sessions/deb0e262-a3a0-4320-9461-d9c181a663c5 Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
Contributor
Author
Member
|
@copilot rebase |
…r-151-new-task-interface Co-authored-by: bcho <1975118+bcho@users.noreply.github.com>
Contributor
Author
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.
HostRoutingConfigstruct topkg/config/structs.gopkg/hostrouting/package (renamed frompkg/routing/)assets/— service and script template files usingBefore=systemd-nspawn@.serviceconfigure_static_routes.go+ testscheck_route_overlap.go+ testshostrouting.go—Configure(cfg, logger) phases.Taskcombining both tasks viaphases.Serialhostrouting.Configure(b.cfg, b.logger)call intopkg/bootstrapper/bootstrapper.gogofmton all changed files (fixed alignment inpkg/config/structs.go)main(resolvedgo.sumconflict forunbounded v0.1.2→v0.1.3)