You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to know how to translate the weight-based canary annotation in nginx【nginx.ingress.kubernetes.io/canary-weight】. The apisix ingress controller implements the canary function based on the traffix-split plug-in. Now I can only get the weight of the gray upstream from annotation. And the traffic-split plugin-in needs the id and weight of both the baseline upstream and the gray upstream. How the apisix ingress controller implement canary publishing based annotations?
Environment
your apisix-ingress-controller version (output of apisix-ingress-controller version --long): 1.8.0
your Kubernetes cluster version (output of kubectl version): v1.25.3
if you run apisix-ingress-controller in Bare-metal environment, also show your OS version (uname -a):
The text was updated successfully, but these errors were encountered:
@ruiruijianggg From the Nginx Ingress Controller docs it seems like the weight you set in the nginx.ingress.kubernetes.io/canary-weight is the the percentage of traffic you want to route to your canary deployment. In APISIX, the you can configure a more granular traffic split where you can specify the ratio of how traffic is to be split between your baseline deployment and canary deployment. So if you want to directly translate, you can translate the percentage to ratio.
nginx.ingress.kubernetes.io/canary-weight: 50 would mean 50% to canary release. In ApisixRoute, this becomes:
Issue description
I want to know how to translate the weight-based canary annotation in nginx【nginx.ingress.kubernetes.io/canary-weight】. The apisix ingress controller implements the canary function based on the traffix-split plug-in. Now I can only get the weight of the gray upstream from annotation. And the traffic-split plugin-in needs the id and weight of both the baseline upstream and the gray upstream. How the apisix ingress controller implement canary publishing based annotations?
Environment
The text was updated successfully, but these errors were encountered: