add domain at the beginning/k8s pssh
This commit is contained in:
parent
e7b56339f1
commit
295a36106f
1 changed files with 3 additions and 1 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue