-
Notifications
You must be signed in to change notification settings - Fork 582
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
WireGuard Support for Canal #2308
Comments
Yes please, wireguard support for canal would be awesome! |
See also: #1125 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
A docs PR to adjust the port requirements would be ideal to track that port 51820/UDP inbound is needed from nodes within the cluster. |
Note: According to RKE2's docs this works in RKE2. I wouldn't be surprised if this could work/does work with RKE1, but maybe just isn't documented. Quoting the following site: https://docs.rke2.io/install/network_options/#install-a-cni-plugin Starting with RKE2 v1.23 it is possible to use flannels wireguard backend for in-kernel WireGuard encapsulation and encryption (Users of kernels < 5.6 need to install a module). This can be achieved using the following config:
|
The RKE equivalent would be:
Which doesn't work, unfortunately. |
And for anyone else that lands on this issue when searching for 'wireguard', if you're not married to using Canal then it can be easily enabled using Calico as your CNI instead with the following configuration in your network:
plugin: calico
addons: |-
---
apiVersion: crd.projectcalico.org/v1
kind: FelixConfiguration
metadata:
name: default
spec:
wireguardEnabled: true |
I first modified the canal-config on a running cluster:
And then put the contents of the wireguard extension inside of the net-conf.json block:
This is exactly what k3s is doing, (See: https://github.com/rancher/k3s/blob/master/pkg/agent/flannel/setup.go#L62).
gz#12903
The text was updated successfully, but these errors were encountered: