mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-27 16:11:03 +07:00
1c586813a2
Easier to test and less maintenance
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"
|