add script to cycle central controllers
This commit is contained in:
8
cycle_controllers.sh
Executable file
8
cycle_controllers.sh
Executable file
@@ -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
|
||||||
Reference in New Issue
Block a user