Skip to content

Conversation

@samdbmg
Copy link

@samdbmg samdbmg commented Nov 13, 2025

Fixes #442

Adds address-sort-order to the Cloud Controller Manager config, set to the CIDR of the node subnet - this feature was added in v1.26.0.

This causes that address to sort before any secondary NICs on the node, avoiding the problem of secondary Neutron ports being used when trying to get log output.

I've tested this in @andrewbonney's deployment and it solves the problem in #442 as a result (although I've not yet been able to run the unit tests locally, so I'm hoping CI has me covered!)

Ensures the correct `InternalIP` is selected when trying to contact the
node, even if multiple IP addresses are available (for example secondary
NICs)

Signed-off-by: Sam Mesterton-Gibbons <[email protected]>
@mnaser
Copy link
Member

mnaser commented Nov 14, 2025

@samdbmg thanks for the awesome change, I do have a small concern:

What will happen in the scenario where someone uses an existing fixed network, in this case, I believe fixed_subnet_cidr will be set to the 10.x but won't actually be that, will the deployment fail or how does Kubernetes react if the CIDR does not match any interfaces on the system?

(on a side note, we probably should really have a test for that, but slowly and surely)

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.

fr: support setting kubelet --node-ip using workers' primary NIC

2 participants