cycle_controllers.sh 175 B

123456789
  1. #!/usr/bin/env bash
  2. CONTROLLERS=`kubectl get pods -o=name | grep controller | sed "s/^.\{4\}//"`
  3. for c in ${CONTROLLERS[@]}
  4. do
  5. kubectl delete pod ${c}
  6. sleep 30
  7. done