mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 20:13:44 +02:00
add script to cycle central controllers
This commit is contained in:
parent
b75f212d70
commit
82409eb345
1 changed files with 8 additions and 0 deletions
8
cycle_controllers.sh
Executable file
8
cycle_controllers.sh
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/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
|
Loading…
Add table
Reference in a new issue