mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-18 20:47:53 +00:00
19 lines
399 B
Bash
Executable File
19 lines
399 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
if [ -z "$1" ]
|
|
then
|
|
echo "Must supply a docker tag"
|
|
exit 1
|
|
fi
|
|
|
|
TAG=$1
|
|
|
|
CONTROLLERS=`kubectl get pods -o=name | grep controller | sed "s/^.\{4\}//" | cut -d '-' -f 2`
|
|
|
|
for c in ${CONTROLLERS[@]}
|
|
do
|
|
kubectl set image deployment controller-${c} ztcentral-controller=gcr.io/zerotier-central/ztcentral-controller:${TAG}
|
|
echo "Sleeping for 1 minute"
|
|
sleep 60
|
|
done
|