-
Notifications
You must be signed in to change notification settings - Fork 380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add spec.api.onlyBindToAddress configuration #3824
Conversation
0e18077
to
da52a28
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for picking this up.
I'd double-check if there are some bad interactions with node-local load balancing? I imagine the LB config needs to pick up the correct bind addresses as well?
We should think about some integration test, too, I suppose.
5d4f908
to
86eeb7b
Compare
Okay, some things to proceed with:
|
I'm not very familiar with the code base yet, can you point me to examples for integration tests?
I'd have to look into how nllb works exactly. Depending on how the upstream connection is made its configuration probably needs adjustments.
I guess a disclaimer like "if you change the bind address make sure to align your external load balancer" or so. I feel like people changing bind addresses are probably aware of the impact. But that's just my opinion.
k0sctl would need to interact with the API server on the correct IP, wouldn't it? |
86eeb7b
to
a27e9fd
Compare
a27e9fd
to
81c1516
Compare
Sorry for getting back to you so late @pschichtel. I'll bluntly blame the holiday season for that. 😅
We could try to start with the existing nllb inttest, copy that over into a separate directory and start hacking on the new one. You can probably delete all the cluster-restart stuff in there, and just rely on the cluster bootstrapping part. You need to add the new directory name to Might make sense to simply try to overwrite the bind addresses of every component that you can get hold of and see what happens to the cluster.
Sounds good enough for the start.
Yes. Would it need to look at the k0s config to figure this out? Or would it "just work"? Maybe @kke can tell. |
No worries, I don't have any rush with this one.
Makes sense, I'll have a go at that. |
81c1516
to
d5c491e
Compare
(The linter error will go away after a rebase. See #3991 for details.) |
yeah I plan to work on this again towards the end of this week |
d5c491e
to
22ddd5f
Compare
Any idea when this feature will be available? I also have multiple IPs and only want to bind the k0scontroller to a specific IP. |
@andycandy-de sadly this had to be pushed back a little in my prio list, but I still intent to eventuelly finish this up. I think some of the recent k0s/k8s releases also added additional components, which probably needs/deserves some investigation. I'm currently unable to work on it until mid of April, so no sooner than that. |
22ddd5f
to
241f2e4
Compare
241f2e4
to
42a1627
Compare
Great. I'm currently on the go, but can probably clean this up on Sunday. |
This pull request has merge conflicts that need to be resolved. |
a30115d
to
96fb12d
Compare
96fb12d
to
bfb1952
Compare
This pull request has merge conflicts that need to be resolved. |
bfb1952
to
4a92e86
Compare
142dd33
to
2f1d5b5
Compare
Is that failing job just flakyness? It seems to exceeded a deadline unrelated to my change, right? |
Yep, the inttests are quite a bit flaky, unfortunately. |
Signed-off-by: Alex Hutchins <[email protected]> Signed-off-by: gakio12 <[email protected]> Signed-off-by: Phillip Schichtel <[email protected]> # Conflicts: # cmd/controller/certificates.go
Signed-off-by: Phillip Schichtel <[email protected]>
Signed-off-by: Phillip Schichtel <[email protected]>
2f1d5b5
to
a759281
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
and then fails this way:
|
@mback2k Mind creating a k0sctl issue for that? |
I picked up #1038 and rebased it onto main. Smoke tests pass, but not entirely clear what was left here.
From #1038: