summaryrefslogtreecommitdiff
path: root/shell-scripts/get-sshables
diff options
context:
space:
mode:
Diffstat (limited to 'shell-scripts/get-sshables')
-rwxr-xr-xshell-scripts/get-sshables7
1 files changed, 7 insertions, 0 deletions
diff --git a/shell-scripts/get-sshables b/shell-scripts/get-sshables
new file mode 100755
index 0000000..f67c23c
--- /dev/null
+++ b/shell-scripts/get-sshables
@@ -0,0 +1,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