First Commit
/ build_macos (push) Has been cancelled
/ build_windows (push) Has been cancelled
/ build_ubuntu (push) Has been cancelled

This commit is contained in:
dsutanto committed 2025-11-19 16:23:45 +07:00
commit dbdc5bcc4a
1791 files changed
+489451

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
#!/usr/bin/env bash
if [ -z "$1" ]
then
echo "Usage: $0 <docker_tag> <k8s_namespace>"
echo " k8s_namesapce is set to default if not specified"
exit 1
fi
if [ -z "$2" ]
then
NAMESPACE=default
else
NAMESPACE=$2
fi
TAG=$1
CONTROLLERS=`kubectl get pods -o=name --namespace=${NAMESPACE} | grep controller | sed "s/^.\{4\}//" | cut -d '-' -f 2`
for c in ${CONTROLLERS[@]}
do
kubectl set image deployment --namespace=${NAMESPACE} controller-${c} ztcentral-controller=docker.zerotier.com/zerotier-central/ztcentral-controller:${TAG}
echo "Sleeping for 1 minute"
sleep 60
done