ZeroTierOne/attic/cycle_controllers.sh
Adam Ierymenko 5c1fc43610
cleanup
2019-08-19 20:29:24 -07: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