tokers edited a comment on issue #248:
URL: 
https://github.com/apache/apisix-ingress-controller/issues/248#issuecomment-781125680


   The `ApisixRoute` should leverage the advantages of APISIX Routes as soon as 
possible, for instance, the flexible route match, native plugins support.
   
   ```yaml
   apiVersion: apisix.apache.org/v2alpha1
   kind: ApisixRoute
   metadata:
     name: httpbin-route
   spec:
     http:
       priority: 10
       match:
          paths:
            - "/a"
            - "/bb*"
          methods:
           - GET
           - POST
         hosts:
           - a.com
           - aa.com
         remote_addrs:
           - 192.168.1.0/24
           - 10.0.5.12
         nginxVars:
           - "$binary_remote_addr"
       route:
         serviceName: httpbin
         servicePort: 8080
       plugins:
         - name: redirect
            enable: true
            config:
              aaa: bbb
              ccc: ddd
   ```
   
   The `scripts` are used by plugin orchestration, we don't use 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.

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


Reply via email to