From 0d2452c18f40d5441e7d30fd7ad21e703c8267a0 Mon Sep 17 00:00:00 2001 From: Stefan Reimer Date: Thu, 15 Apr 2021 14:25:23 +0200 Subject: [PATCH] feat: new exec_each_node.sh tools script --- scripts/exec_each_node.sh | 8 ++++++++ scripts/{get_cgroup_limits.sh => pod_mem_cgroup_limit.sh} | 0 2 files changed, 8 insertions(+) create mode 100755 scripts/exec_each_node.sh rename scripts/{get_cgroup_limits.sh => pod_mem_cgroup_limit.sh} (100%) diff --git a/scripts/exec_each_node.sh b/scripts/exec_each_node.sh new file mode 100755 index 00000000..61d9e7b3 --- /dev/null +++ b/scripts/exec_each_node.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +NODES=$(kubectl get nodes -o json | jq -rc .items[].status.addresses[0].address) + +for n in $NODES; do + >&2 echo "Node: $n" + ssh -q $n "$@" +done diff --git a/scripts/get_cgroup_limits.sh b/scripts/pod_mem_cgroup_limit.sh similarity index 100% rename from scripts/get_cgroup_limits.sh rename to scripts/pod_mem_cgroup_limit.sh