mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/khuedoan/homelab.git
synced 2026-09-20 08:03:58 +08:00
11 lines
261 B
Bash
Executable File
11 lines
261 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
PEER="${1}"
|
|
|
|
export KUBECONFIG=./metal/kubeconfig-${env}.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"
|