You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
353 B
16 lines
353 B
#!/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} |
|
done
|
|
|