Open dwitzig opened 5 years ago
It would be cool if k3os would support wireguard von and use it for pod networking and other internal traffic.
Hi @dwitzig I hope you don't mind me asking here. I am using RancherOS and would like to encrypt traffic between the nodes of Kubernetes clusters since my provider doesn't have private networking. Do you have a blog post or tutorial on how you implemented the solution in your example / how it works so I can understand better also how to configure the network settings? Also are you happy with Zerotier for this so far? Thanks!
Hi @vitobotta, I put together a quick outline of how I deploy via ZT in this gist https://gist.github.com/dwitzig/1c3f0a3ed215a5852a4dc40cc608e876
I modified the boot scripts to use env vars and wait for network script to make it a bit simpler. Normally I use a Key/Value store so hopefully it works ( did not have a chance to test :) )
I really like ZeroTier. It's supper easy to deploy and its ability to auto failover and use the most efficient WAN connection is great. I use it on edge devices that have a 3G dongle for failover. ZeroTier handles this effortlessly.
The trickiest thing I found using a VPN to connect nodes is making sure the nodes and CNI are using the correct IP and interface. (I only just got this completely sorted when I moved to k3s)
hope that helps :)
Hi @dwitzig , in the meantime I sorted out with Wireguard and I am really happy with it. I created a Docker image to manage it via a container/service - see https://vitobotta.com/2019/07/17/kubernetes-wireguard-vpn-rancheros/ - I changed mind about using ZeroTier because I didn't wan't to have to trust someone with this stuff. Thanks btw
linking #422 (Wireguard on K3OS)
wondering how to connect k3OS nodes over a VPN (this might not be possible yet...) On RancherOS I deploy a vpn service in my cloud-config (see bellow)
is it possible to achieve something similar on k3OS?