mirror of
https://github.com/khuedoan/homelab.git
synced 2025-07-08 23:08:40 +07: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"
|