summaryrefslogtreecommitdiff
path: root/mut/bin/get-sshables
blob: f67c23c9fefdc5fdeb5ff2587c4a30e1fa106181 (plain)
1
2
3
4
5
6
7
#!/bin/bash
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