-
Notifications
You must be signed in to change notification settings - Fork 43
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 support for pod Wireguard sidecar #44
base: main
Are you sure you want to change the base?
Add support for pod Wireguard sidecar #44
Conversation
…ured for a wireguard peer.
@jodevsa can I get a cursory review on this? My Go is awful, so just want to know I am heading in the right direction |
Sure, Can you please elaborate on the use cases of this feature? |
Sure, the use case would be to put the individual pods on a WireGuard network for secure communication with services elsewhere in the mesh. See: #27 |
…unctionality for appending to pod spec
3cc915e
to
619d53a
Compare
@jodevsa can I get some help on why the e2e tests are failing, this code is still unfinished because I had to do some work to improve and fix up the makefile for local development. |
2dbc897
to
4bd7537
Compare
Hello, @Matthew-Beckett how this would work to route multiple pods to a single wireguard peer interface ? Having this scenario: In order to have another pod (your application) to route its traffic to that network interface, would this PR solve this scenario? As far as I know, you need a multi-homed pod (like using multus) and bridge a dummy interface, otherwise your application pod will not connect or route to another interface (wg0) inside another pod. |
Has this been tested? Aren't pods immutable? I believe other projects use admission webhooks to patch pod specs before they're actually created. |
This PR adds a sidecar which can be added to a pod by the controller when the annotation:
vpn.example.com/sidecar-enable: true is set and
vpn.example.com/sidecar-wireguard-ref: is a valid wireguard reference
The wireguard sidecar is automatically configured for the vpn and a peer is created automatically.