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

View file

@ -4,8 +4,10 @@
#set -x #set -x
domain=$1; shift
tmp=$(mktemp) 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" #cat "$tmp"
pssh -h "$tmp" -l root -i "$@" pssh -h "$tmp" -l root -i "$@"
rm -f "$tmp" rm -f "$tmp"