summaryrefslogtreecommitdiff
path: root/cycle_controllers.sh
diff options
context:
space:
mode:
Diffstat (limited to 'cycle_controllers.sh')
-rwxr-xr-xcycle_controllers.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/cycle_controllers.sh b/cycle_controllers.sh
new file mode 100755
index 00000000..34acacf4
--- /dev/null
+++ b/cycle_controllers.sh
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+
+CONTROLLERS=`kubectl get pods -o=name | grep controller | sed "s/^.\{4\}//"`
+
+for c in ${CONTROLLERS[@]}
+do
+ kubectl delete pod ${c}
+ sleep 30
+done