Development discussion of WireGuard
 help / color / mirror / Atom feed
From: Tom Denham <tom@tigera.io>
To: Martin Eskdale Moen <martinmoen@gmail.com>
Cc: WireGuard mailing list <WireGuard@lists.zx2c4.com>
Subject: Re: Using WireGuard with Kubernetes
Date: Wed, 25 Apr 2018 16:32:33 -0700	[thread overview]
Message-ID: <CAJ5-c6WuHp-uppZO6gdSxn6J4FvNCVyfpt-wT-s9hjsRP9vyDg@mail.gmail.com> (raw)
In-Reply-To: <CAKiCHuNqght5YJQT2kBqsA82EFv-r+3BFgnbCPh27RR_kbYc2w@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2440 bytes --]

For Kubernetes, using the bridge CNI plugin (
https://github.com/containernetworking/plugins/tree/master/plugins/main/bridge)
or even the ptp plugin (
https://github.com/containernetworking/plugins/tree/master/plugins/main/ptp)
should work fine. I wonder though if there's a way to alias the wg0 device
itself and push that into the container with something like the host-device
plugin (
https://github.com/containernetworking/plugins/tree/master/plugins/main/host-device).
This would avoid the overhead of a veth (and a bridge).

<https://tigera.io/> *Tom* *Denham*
Senior Software Engineer
Tigera
tom@tigera.io | @_tomdee <https://twitter.com/_tomdee> |
https://github.com/tomdee  <https://github.com/tomdee>
Follow us: Blog <https://blog.tigera.io/> | Twitter
<https://twitter.com/tigeraio> | LinkedIn
<https://www.linkedin.com/company/tigera/>

Secure Application Connectivity for the Cloud Native World
<https://tigera.io/>

On Wed, Apr 25, 2018 at 1:15 PM, Martin Eskdale Moen <martinmoen@gmail.com>
wrote:

> I've been doing some experiments with this. Not so much with kubes yet,
> that was next on the list.
> I think at the moment linking together the various network namespaces
> using a linux bridge should work.
> Not sure if I'm shooting myself in the foot at all using linux bridges.
> Reading over the docs of openvswitch vs linux bridge it seems the bridge is
> easier to understand and overall more useful.
>
> On Wed, Apr 25, 2018 at 6:54 PM, Tom Denham <tom@tigera.io> wrote:
>
>> I was wondering if anyone had any experience using WireGuard with
>> Kubernetes? I see that the WireGuard website says "Ready for Containers"
>> but the model it describes sounds like it would work for adding WireGuard
>> to a single container (putting the wg interface in the container itself).
>> If I have many containers on a host, and many containers on a host, and I
>> want them all to be able to communicate with each other using WireGuard,
>> then I would need to create many different WireGuard interfaces and
>> presumably they would all need their own independent config. It doesn't
>> feel like this would scale to 100's of hosts and tens of thousands of
>> containers.
>>
>> I'm interested in hearing people's thoughts and ideas on this
>> Thanks
>> Tom
>>
>> _______________________________________________
>> WireGuard mailing list
>> WireGuard@lists.zx2c4.com
>> https://lists.zx2c4.com/mailman/listinfo/wireguard
>>
>>
>

[-- Attachment #2: Type: text/html, Size: 4585 bytes --]

      reply	other threads:[~2018-04-25 23:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-25 17:54 Tom Denham
2018-04-25 20:15 ` Martin Eskdale Moen
2018-04-25 23:32   ` Tom Denham [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJ5-c6WuHp-uppZO6gdSxn6J4FvNCVyfpt-wT-s9hjsRP9vyDg@mail.gmail.com \
    --to=tom@tigera.io \
    --cc=WireGuard@lists.zx2c4.com \
    --cc=martinmoen@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).