summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrant Limberg <grant.limberg@zerotier.com>2018-12-03 15:04:46 -0800
committerGrant Limberg <grant.limberg@zerotier.com>2018-12-03 15:04:46 -0800
commit82409eb34567cd12823586edff021c65145a9feb (patch)
treea77db4933072605dd1268bee432f747f4983b39e
parentb75f212d709a05acb6069c0eaa6a7509f5e6d87e (diff)
downloadinfinitytier-82409eb34567cd12823586edff021c65145a9feb.tar.gz
infinitytier-82409eb34567cd12823586edff021c65145a9feb.zip
add script to cycle central controllers
-rwxr-xr-xcycle_controllers.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/cycle_controllers.sh b/cycle_controllers.sh
new file mode 100755
index 00000000..c02a1f9b
--- /dev/null
+++ b/cycle_controllers.sh
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+
+CONTROLLERS=`kubectl get pods -o=name | grep controller | sed "s/^.\{4\}//"`
+
+for c in ${CONTROLLERS[@]}
+do
+ kubectl delete pod ${c}
+done