add domain at the beginning/k8s pssh

This commit is contained in:
Nico Schottelius 2021-12-11 00:02:45 +01:00
parent e7b56339f1
commit 295a36106f
1 changed files with 3 additions and 1 deletions

View File

@ -4,8 +4,10 @@
#set -x
domain=$1; shift
tmp=$(mktemp)
kubectl get node -o name | sed 's,node/,,' > "$tmp"
kubectl get node -o name | sed -e 's,node/,,' -e "s,\$,.$domain,"> "$tmp"
#cat "$tmp"
pssh -h "$tmp" -l root -i "$@"
rm -f "$tmp"