blob: fa88f7ccac683c6ee7f3aa2cb0012bc2c499d69f (
plain)
1
2
3
4
5
6
7
|
#!/bin/sh
set -euxo pipefail
[[ -d ~/sshables ]] || mkdir -p ~/sshables
for cluster in $(kubectl config get-clusters | tail -n +2); do
[[ -f ~/sshables/$cluster ]] || { echo $cluster; kubectl --context $cluster get nodes -oname > ~/sshables/$cluster; }
done
|