Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

gcloud run deploy promote 100% traffic

I’m deploying my app in the following way:

gcloud run deploy ${{ secrets.SERVICE_NAME }} \
  --source $(pwd) \
  --region us-central1 \
  --allow-unauthenticated \
  --platform managed

And it works fine.

However, I manually changed my service to serve the traffic 100%; now, every time that I deploy, the latest deployment doesn’t get promoted, and it still keeps serving the old one.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

To revert this behavior, what do I do, pass a flag or something else?

>Solution :

Yes, try setting this:

gcloud run services update-traffic SERVICE --to-latest

Take a look at Send all traffic to the latest revision

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading