ZeroTierOne/cycle_controllers.sh
2018-12-10 12:26:20 -08:00

10 lines
175 B
Bash
Executable File

#!/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