feat: new exec_each_node.sh tools script

This commit is contained in:
Stefan Reimer 2021-04-15 14:25:23 +02:00
parent 7ddd5065fd
commit e7236e461b
2 changed files with 8 additions and 0 deletions

8
scripts/exec_each_node.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
NODES=$(kubectl get nodes -o json | jq -rc .items[].status.addresses[0].address)
for n in $NODES; do
>&2 echo "Node: $n"
ssh -q $n "$@"
done