ungleich-tools/k8s/pssh-all-nodes.sh

9 lines
142 B
Bash
Executable file

#!/bin/sh
#set -x
tmp=$(mktemp)
kubectl get node -o name | sed 's,node/,,' > "$tmp"
#cat "$tmp"
pssh -h "$tmp" -l root -i "$@"
rm -f "$tmp"