ZeroTierOne/cycle_controllers.sh

9 lines
162 B
Bash
Raw Normal View History

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