You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/07/18 03:20:48 UTC

[GitHub] [apisix-ingress-controller] cai200631 opened a new issue, #1167: request help: use ingress annotation to support traffic split feature

cai200631 opened a new issue, #1167:
URL: https://github.com/apache/apisix-ingress-controller/issues/1167

   ### Issue description
   
   I am trying to replace nginx-ingress by apisix-ingress, the traffic-split feature(like gray) in nginx-ingress is supported by ingress annotation like nginx.ingress.kubernetes.io/canary-by-header,  is there any chance that apisix-ingress can support or supply some annotation to support traffic-split ?  I prefer to use ingress than ApisixRoute,  ingress is in common use after all
   
   ### Environment
   
   - your apisix-ingress-controller version (output of apisix-ingress-controller version --long):
   - your Kubernetes cluster version (output of kubectl version):
   - if you run apisix-ingress-controller in Bare-metal environment, also show your OS version (uname -a):
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] cai200631 commented on issue #1167: request help: use ingress annotation to support traffic split feature

Posted by GitBox <gi...@apache.org>.
cai200631 commented on issue #1167:
URL: https://github.com/apache/apisix-ingress-controller/issues/1167#issuecomment-1188975148

   > Yes! We can use the PluginConfig annotation on the Ingress resource to bind any APISIX plugin to the Ingress resource.
   > 
   > you can refer to https://github.com/apache/apisix-ingress-controller/blob/master/docs/en/latest/concepts/annotations.md#use-apisixpluginconfig
   > 
   > This feature will be introduced in this month's v1.5 release. Implemented in #1139
   
   I am confused,  is apisixpluginconfig can bind traffic-split now?  or I can bind traffic-split plugin to apisixpluginconfig when V1.5 is released ? 
   
   
   I have tried as follows:
   
   1. declare  an ApisixPluginConfig: 
   
   apiVersion: apisix.apache.org/v2beta3
   kind: ApisixPluginConfig
   metadata:
     name: traffic-split
     namespace: test-beijing
   spec:
     plugins:
     - name: traffic-split
       enable: true
       config:
        rules:
         - match:
           - vars:
               - front-traffic-env
               - ==
               - test-beijing
   
   2. declare an Ingress: 
   
   apiVersion: networking.k8s.io/v1
   kind: Ingress
   metadata:
     name: um-qingzhou-fe-70otk2cqeal71rq10wdyb1463
     namespace: test-beijing
     annotations:
       k8s.apisix.apache.org/plugin-conifg-name: "traffic-split"
     labels:
       deployment: um-qingzhou-fe
       env: test-beijing
       host: test.demo.com
   spec:
     ingressClassName: apisix
     rules:
       - host: qingzhou.baijia.com
         http:
           paths:
             - path: /
               pathType: Prefix
               backend:
                 service:
                   name: svc-arch-fe-general-test-service
                   port:
                     number: 80
   
   
   
   but when I curl add an header  'front-traffic-env:test-beijing' http:// test.demo.com/index.html,  it is not working;
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] tao12345666333 commented on issue #1167: request help: use ingress annotation to support traffic split feature

Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on issue #1167:
URL: https://github.com/apache/apisix-ingress-controller/issues/1167#issuecomment-1186742901

   Yes! We can use the PluginConfig annotation on the Ingress resource to bind any APISIX plugin to the Ingress resource.
   
   you can refer to https://github.com/apache/apisix-ingress-controller/blob/master/docs/en/latest/concepts/annotations.md#use-apisixpluginconfig
   
   This feature will be introduced in this month's v1.5 release. Implemented in #1139


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] tao12345666333 commented on issue #1167: request help: use ingress annotation to support traffic split feature

Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on issue #1167:
URL: https://github.com/apache/apisix-ingress-controller/issues/1167#issuecomment-1189991262

   end of the month


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] SkyeYoung commented on issue #1167: request help: use ingress annotation to support traffic split feature

Posted by GitBox <gi...@apache.org>.
SkyeYoung commented on issue #1167:
URL: https://github.com/apache/apisix-ingress-controller/issues/1167#issuecomment-1191064983

   > @SkyeYoung It is best if it can be adapted through the apisix-website project. Since we may have used that branch name in some mail or stuff in the history, I'm not sure what would break. Thanks!
   
   Okay, I will submit a PR in the apisix-website repository tomorrow and CC it to you. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] github-actions[bot] commented on issue #1167: request help: use ingress annotation to support traffic split feature

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #1167:
URL: https://github.com/apache/apisix-ingress-controller/issues/1167#issuecomment-1284780282

   This issue has been marked as stale due to 90 days of inactivity. It will be closed in 30 days if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@apisix.apache.org list. Thank you for your contributions.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] github-actions[bot] closed issue #1167: request help: use ingress annotation to support traffic split feature

Posted by GitBox <gi...@apache.org>.
github-actions[bot] closed issue #1167: request help: use ingress annotation to support traffic split feature
URL: https://github.com/apache/apisix-ingress-controller/issues/1167


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] SkyeYoung commented on issue #1167: request help: use ingress annotation to support traffic split feature

Posted by GitBox <gi...@apache.org>.
SkyeYoung commented on issue #1167:
URL: https://github.com/apache/apisix-ingress-controller/issues/1167#issuecomment-1190992818

   > For this repo, the only change we should take is **renaming the released branch from `vxxxx` to `release/xxxx`**, see [apache/apisix](https://github.com/apache/apisix)
   
   @tao12345666333 Will we change the name of the release branch to keep it consistent with projects like apisix? Or do I have to do some extra processing in apisix-website?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] github-actions[bot] commented on issue #1167: request help: use ingress annotation to support traffic split feature

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #1167:
URL: https://github.com/apache/apisix-ingress-controller/issues/1167#issuecomment-1321009260

   This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] tao12345666333 commented on issue #1167: request help: use ingress annotation to support traffic split feature

Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on issue #1167:
URL: https://github.com/apache/apisix-ingress-controller/issues/1167#issuecomment-1189713080

   @juzhiyuan Can you help point out how to add versioned documentation? I didn't notice it


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] juzhiyuan commented on issue #1167: request help: use ingress annotation to support traffic split feature

Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #1167:
URL: https://github.com/apache/apisix-ingress-controller/issues/1167#issuecomment-1189854111

   Hi @tao12345666333, please check https://github.com/apache/apisix-website/issues/201 and https://apisix.apache.org/docs/general/documentation-style-guide/#formatting-punctuation-and-organization.
   
   For this repo, the only change we should take is **renaming the released branch from `vxxxx` to `release/xxxx`**, see https://github.com/apache/apisix
   
   Just to make sure: will this change break some CI/3rd systems?
   
   cc @SkyeYoung 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] cai200631 commented on issue #1167: request help: use ingress annotation to support traffic split feature

Posted by GitBox <gi...@apache.org>.
cai200631 commented on issue #1167:
URL: https://github.com/apache/apisix-ingress-controller/issues/1167#issuecomment-1189707253

   > You need to use latest code from master branch or wait for v1.5 released
   
   I finally figure out the trick,  you guys are too naughty. Why the documentation's version is NEXT,  and I cannot choose the current version....
   
   <img width="1204" alt="image" src="https://user-images.githubusercontent.com/9104913/179876150-0304e1dd-a67a-4090-84ea-b9e7c6ab092e.png">
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] cai200631 commented on issue #1167: request help: use ingress annotation to support traffic split feature

Posted by GitBox <gi...@apache.org>.
cai200631 commented on issue #1167:
URL: https://github.com/apache/apisix-ingress-controller/issues/1167#issuecomment-1189990662

   By the way, is there any exact date that v1.5 will be released ? 
   
   > @juzhiyuan Can you help point out how to add versioned documentation? I didn't notice it
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] tao12345666333 commented on issue #1167: request help: use ingress annotation to support traffic split feature

Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on issue #1167:
URL: https://github.com/apache/apisix-ingress-controller/issues/1167#issuecomment-1191042191

   @SkyeYoung It is best if it can be adapted through the apisix-website project.  
   Since we may have used that branch name in some mail or stuff in the history, I'm not sure what would break.
   Thanks!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] tao12345666333 commented on issue #1167: request help: use ingress annotation to support traffic split feature

Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on issue #1167:
URL: https://github.com/apache/apisix-ingress-controller/issues/1167#issuecomment-1189300208

   You need to use latest code from master branch or wait for v1.5 released 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org