feat: new exec_each_node.sh tools script
This commit is contained in:
parent
1adb15dd20
commit
0d2452c18f
8
scripts/exec_each_node.sh
Executable file
8
scripts/exec_each_node.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user