Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase the sleep time between proxy rollouts #2689

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions release/cloudbuild-restart-proxies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,25 @@ steps:

gcloud auth activate-service-account --key-file=tool-credential.json

first=true

while read line
do
# Sleep for 60 min for the rollout to stabilize.
if [[ -v first ]]
then
unset first
else
sleep 3600
fi
name=$(echo $line | awk '{print $1}')
location=$(echo $line | awk '{print $2}')
echo $name $region
echo "Updating cluster $name in location $location..."
gcloud container clusters get-credentials $name \
--project $project_id --location $location
kubectl rollout restart deployment/proxy-deployment
# Sleep for 20 min for the rollout to stabilize.
sleep 1200
done < <(gcloud container clusters list --project $project_id | grep proxy-cluster)
timeout: 7200s
timeout: 7500s
options:
machineType: 'N1_HIGHCPU_8'