Add script to zap node exporters

This commit is contained in:
Jonas Juselius
2021-09-22 21:12:04 +02:00
parent 2b6ec15946
commit ee0e09aa47

5
scripts/zap-node-exporters.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/usr/bin/env bash
for i in $(kubectl get nodes | sed -nr 's/^(k[^ ]+) .*/\1/p'); do
ssh root@$i pkill node_exporter
done