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: - subject: "$remote_addr" op: in array: - 127.0.0.1 - 10.0.5.11 backend: serviceName: httpbin servicePort: 8080 resolveGranularity: endpoint # by default is endpoint, optional value can be "service". 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