Skip to content

Instantly share code, notes, and snippets.

View quernd's full-sized avatar
😺

Daniel Quernheim quernd

😺
View GitHub Profile
@quernd
quernd / k.sh
Created September 9, 2022 17:48 — forked from wokalski/k.sh
Boundary Kubectl connect with persistent sessiosn
#!/bin/zsh
PID_FILE="$HOME/.boundary_session_ttcp_qoAc0ZmBKu"
connect() {
echo "Inititating a boundary session to k8s..."
TMP_FILE=$(mktemp)
nohup -- boundary connect -target-id ttcp_qoAc0ZmBKu -format json &> $TMP_FILE &
CONNECT_PID=$!