diff options
| author | Mike Vink <mike.vink@stater.nl> | 2023-05-04 18:01:53 +0200 |
|---|---|---|
| committer | Mike Vink <mike.vink@stater.nl> | 2023-05-04 18:01:53 +0200 |
| commit | ce2fcdfcc53cb354377f678219801f4b1ad3023b (patch) | |
| tree | 5c5adca98a908e4d408ca6725244ecceb3f6a65a /shell-scripts/get-sshables | |
| parent | bf0e1306e3ce88c11979b868dcb010c590592283 (diff) | |
fixup
Diffstat (limited to 'shell-scripts/get-sshables')
| -rwxr-xr-x | shell-scripts/get-sshables | 7 |
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 |
