ReachableCEO-ShellScriptPor.../kbCheck.sh

18 lines
222 B
Bash
Raw Normal View History

2024-12-11 19:01:29 +00:00
#!/bin/bash
IFS=$'\n\t'
kbNodeList=(
"db1"
"db2"
"db3"
)
for kbNode in ${kbNodeList[@]}; do
COMMAND="$(ssh $kbNode uptime)"
echo "Load on $kbNode" $COMMAND
done
kubectl get nodes -o wide
kubectl get pods -A -o wide