9 lines
159 B
Bash
9 lines
159 B
Bash
|
#!/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
|