Set deployment Traffic Weight via UI
Problem to solve
As a developer using weight annotations - I would like to be able set the weight of the canary rollout via the UI
User experience goal
The user should be able to set the traffic weight via the UI
- Allow customization of the weight numbers (if this is difficult - we can have pre-defined values - for example: 25%,50%,75%,100% through API.
- Add this option to the UI to configure the weight - through free text or drop down (depending on previous bullet decision) - needs @dimitrieh 's attention
typical scenario of the rule is based on weight, that is, blue-green deployment. You can set the weight from 0 to 100 to implement that kind of application release. At any time, only one of the environments is production. For this example, currently green is production and blue is canary. Initially, the weight of canary is set to 0which means no traffic is forwarded to this release. You can introduce a small portion of traffic to blue version step by step, test and verify it. If everything is OK then you can shift all requests from green to blue by set the weight of blue to 100which makes blue the production release. In a word, with such canary releasing process, the application is upgraded smoothly.
nginx.ingress.kubernetes.io/canary-weight: The integer based (0 - 100) percent of random requests that should be routed to the service specified in the canary Ingress. A weight of 0 implies that no requests will be sent to the service in the Canary ingress by this canary rule. A weight of 100 means implies all requests will be sent to the alternative service specified in the Ingress.