refactor!: replace ZeroTier with Tailscale and Wireguard

- Tailscale UX is better, and the Headscale control server is also
  easier to self-host than ZeroTier (although Headscale is not the
  official control server, the author now works at Tailscale)
- Wireguard is also added as an alternative to avoid relying on a
  third-party service, however it requires port-forwarding
This commit is contained in:
Khue Doan
2024-04-18 20:11:18 +07:00
parent eb88f5c306
commit 2cd8a249b6
15 changed files with 83 additions and 210 deletions

10
scripts/get-wireguard-config Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
set -eu
PEER="${1}"
export KUBECONFIG=./metal/kubeconfig.yaml
kubectl -n wireguard exec -it deployment/wireguard -- /app/show-peer "${PEER}"
kubectl -n wireguard exec -it deployment/wireguard -- cat "/config/peer_${PEER}/peer_${PEER}.conf"