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/03/17 12:35:16 UTC

[GitHub] [apisix-ingress-controller] dantegarden edited a comment on issue #921: How to use apisix-python-plugin-runner with apisix-ingress

dantegarden edited a comment on issue #921:
URL: https://github.com/apache/apisix-ingress-controller/issues/921#issuecomment-1070866388


   > Thanks for your report. Let me check it.
   
   我再提供一些线索。
   我在apisix ingress之上部署了dashboard,通过观察dashboard,我发现当创建以下内容的apisixroute时,在dashboard的路由列表中无法看到新创建的apisixroute。似乎apisix本身并没有成功添加这条路由规则,因此在访问时返回了404。
   ```yaml
   apiVersion: apisix.apache.org/v2beta2
   kind: ApisixRoute
   metadata:
     name: demo-test
     namespace: dev-3woklfan
   spec:
     http:
     - name: rule1
       match:
         hosts:
         - a1.demo.test
         paths:
         - /*
       backends:
       - serviceName: demo-ad5c19-ad5c19-svc
         servicePort: 30000
       websocket: true
       plugins:
       - name: ext-plugin-pre-req
         enable: true
   ```
   
   而当我将上面内容的spec.http.plugins[0].enable改为false时,重新创建apisixroute,新的路由便出现在了dashboard的列表中。
   看起来像是plugins字段导致了路由未能添加成功,然而错误信息并没有在apisix warn级别的日志中发现。
   
   那么apisixroute中的plugins应该如何配置,才能使用我的apisix-python-plugin-runner中的自定义插件?


-- 
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