khuedoan-homelab/scripts/get-wireguard-config
Khue Doan 1c586813a2 refactor: move dev cluster to master
Easier to test and less maintenance
2024-12-14 21:46:27 +07:00

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"