TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

WireGuard on K8s: road-warrior-style VPN server

165 点作者 sclevine大约 5 年前

11 条评论

tombh大约 5 年前
I think we all understand the usefulness of a road-warrior-style VPN. But it doesn&#x27;t seem so clear what k8s is adding here?<p>Anyway, on the topic of scalable UDP services, does anyone have any experience of load balancing a UDP service? Because UDP is connectionless there&#x27;s no obvious way to make UDP packets &quot;sticky&quot;. Are there any established practices that could help scale this k8s Wireguard service to 2 or more containers?
评论 #23007253 未加载
评论 #23006672 未加载
评论 #23005697 未加载
评论 #23006222 未加载
评论 #23007352 未加载
rektide大约 5 年前
Worth metnioning Kilo, which is an enhancement or a CNI (container network interface) provider that does Wireguard for Kubernetes.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;squat&#x2F;kilo" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;squat&#x2F;kilo</a>
评论 #23008691 未加载
vpner大约 5 年前
GitHub has several projects that automate setting up a wireguard VPN on various cloud VMs without K8s: <a href="https:&#x2F;&#x2F;github.com&#x2F;topics&#x2F;wireguard" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;topics&#x2F;wireguard</a>. There&#x27;s also this tutorial that sets up a VPN along with proper DNS configuration so that DNS doesn&#x27;t leak: <a href="https:&#x2F;&#x2F;www.ckn.io&#x2F;blog&#x2F;2017&#x2F;11&#x2F;14&#x2F;wireguard-vpn-typical-setup&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.ckn.io&#x2F;blog&#x2F;2017&#x2F;11&#x2F;14&#x2F;wireguard-vpn-typical-set...</a>.
BillinghamJ大约 5 年前
You can install the WireGuard tools only, without the kernel extensions etc, with:<p><pre><code> apt-get install -y --no-install-recommends wireguard-tools </code></pre> This is all you need with the server flavour of 20.04. For the minimal one, you need a couple more.<p>So no need to use a builder image
aequitas大约 5 年前
A few people seem to be confused why K8s is needed when you can just run this on the OS itself. I think they miss the point that this is not a guide to setup Wireguard using K8s but setup Wireguard if you only have&#x2F;want a K8s environment.<p>As the author notes: &quot;you can run a road-warrior-style Wireguard server in K8s without making changes to the node.&quot;<p>Which makes this guide ideal for me. I run a lightweight K8s flavor (K3s, <a href="https:&#x2F;&#x2F;k3s.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;k3s.io&#x2F;</a>) as &quot;configuration management&quot; on my home server and home automation Raspberry Pi&#x27;s because I don&#x27;t want to mess with OS&#x2F;userland configuration or the associated tools (Puppet, Ansible, hacked together scripts, etc) or want to maintain any OS state manually.<p>For my setup I just flash K3s to disk or SD card and let it join the cluster. Everything else is configured in Kubernetes and stored nicely as configuration files on my laptop so I have an overview of everthing and can modify&#x2F;rebuild whenever I want.
评论 #23006439 未加载
评论 #23007135 未加载
wferrell大约 5 年前
Worth taking look at <a href="http:&#x2F;&#x2F;tailscale.com" rel="nofollow">http:&#x2F;&#x2F;tailscale.com</a> - Their tag line: Private networks made easy. No affiliation -- just like their product.
评论 #23004029 未加载
评论 #23005528 未加载
sandGorgon大约 5 年前
this example uses k3s - which is the k8s distribution by the Rancher guys. Really cool distro - simple UX. Runs equally good on a raspberry pi or the cloud
stzup7大约 5 年前
I&#x27;m not sure to understand the use case. Is the goal to replace things like flannel? Or route all your traffic from a single gateway?
Legogris大约 5 年前
Is there any reason why OP installs iproute2 and iptables not in the builder together with the wireguard package but in the final container image?
评论 #23004317 未加载
godelmachine大约 5 年前
While we are discussing this, I see NordVPN has also released support for Wireguard and named it NordLynx
microcolonel大约 5 年前
Well, there&#x27;s road-warrior, and then there&#x27;s <i>road-warrior</i>.<p>I&#x27;ve been trying out Glorytun, it does multi-path VPN with a relatively similar wire format to WireGuard. Being mostly indoors, due to the microbial boogaloo, I&#x27;ve not been trying it with the most interesting applications.
评论 #23003907 未加载