mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/khuedoan/homelab.git
synced 2026-09-20 08:03:58 +08:00
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:
10
scripts/get-wireguard-config
Executable file
10
scripts/get-wireguard-config
Executable 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"
|
||||
Reference in New Issue
Block a user