-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
k3s: package wg-add.sh script #116679
Comments
I marked this as stale due to inactivity. → More info |
Still an issue, I think. |
Seems flannel-io/flannel#1230 got resurrected, which might obsolete this issue. |
must still package correct for nixos ...
|
cc @Mic92 |
The upstream PR for native flannel wireguard (linked above) is merged and released, woo! However, k3s is still not quite using it. The upstream k3s setup still uses wg-add.sh + the flannel "extension" type, not the flannel "wireguard" type: https://github.com/k3s-io/k3s/blob/313aaca547f030752788dce696fdf8c9568bc035/pkg/agent/flannel/setup.go#L69-L76 The main downside this has is dual-stack support: k3s-io/k3s#4364 I think we have two options for this issue:
Given my reading of k3s-io/k3s#4365, it sounds like switching between the wg-add.sh extension setup and the native wireguard support will be a breaking change, and it also sounds like it's pretty imminent, so maybe it's easier to just wait a little longer on that. |
Upstream k3s is updating to the native flannel wireguard backend (k3s-io/k3s#5391) This new native flannel wireguard backend doesn't require the At this point, my preference is for us to not package wg-add.sh for nixpkgs (since it'll be deprecated and in general worse starting with the next k3s release), and to mark this issue as resolved after we update to one of the upcoming k3s releases that have |
As of k3s 1.23.6 (updated to here), wireguard can be used with the Closing this issue as fixed by using the native backend instead; please do drop a word if you run into any issues there! |
SGTM 👍
|
Describe the bug
k3s provides a wg-add.sh script that is used when
--flannel-backend=wireguard
is passed to the server. Since it's not included in the k3s package, k3s errors out during startup when wireguard support is enabled.I managed to get it working by downloading and packaging it like this:
And then added it to my nixos config via an overlay:
I'm not actually sure which (if any) of those dependencies are necessary -- my first guess worked, so I stopped messing with it 😁
See also #98090, which is a similar script (I copied the issue template from there).
Notify maintainers
@euank
The text was updated successfully, but these errors were encountered: