ZeroTierOne/cycle_controllers.sh

10 lines
175 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}
sleep 30
done