فهرست منبع

add script to cycle central controllers

Grant Limberg 7 سال پیش
والد
کامیت
82409eb345
1فایلهای تغییر یافته به همراه8 افزوده شده و 0 حذف شده
  1. 8 0
      cycle_controllers.sh

+ 8 - 0
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