ZeroTierOne/cycle_controllers.sh
2018-12-03 15:04:46 -08:00

9 lines
162 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}
done