Giter VIP home page Giter VIP logo

Comments (1)

ahmelsayed avatar ahmelsayed commented on July 28, 2024 1

If you have a revision named A that you would like to pin it to 100% you can do

az containerapp update --name name --resource-group rgname --traffic-weight A=100

Then when you do an update, for example az containerapp update --name name --image {new-image} ...

That will create a new revision B, but since you explicitly set A=100, B won't get any traffic by default. You can then slowly sihft traffic to it.

# Start with 20% of traffic to the new revision `B`
az containerapp update --name name --resource-group rgname --traffic-weight A=80,B=20

# test or sleep for a while, then change to 50/50
az containerapp update --name name --resource-group rgname --traffic-weight A=50,B=50

# If everything looks good with B, set 100 traffic to it. 
az containerapp update --name name --resource-group rgname --traffic-weight A=0,B=100

If you want to restore the default behavior you can do

az containerapp update --name name --resource-group rgname --traffic-weight latest=100

from azure-container-apps.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.