lkad commented on issue #2171: URL: https://github.com/apache/apisix-ingress-controller/issues/2171#issuecomment-2337311046
i have the same problem,use helm chat install with this command : `helm upgrade apisix . --set service.type=NodePort --set ingress-controller.enabled=true --create-namespace --namespace ingress-apisix --set ingress-controller.config.apisix.serviceNamespace=ingress-apisix --set ingress-controller.config.apisix.adminAPIVersion=v3 --set ingress-controller.config.kubernetes.enableGatewayAPI=true --set dashboard.enabled=true --set ingress-controller.config.etcdserver.enabled=true ` but when i unuse --set ingress-controller.config.etcdserver.enabled=true ,it is ok . ` helm upgrade apisix . --set service.type=NodePort --set ingress-controller.enabled=true --create-namespace --namespace ingress-apisix --set ingress-controller.config.apisix.serviceNamespace=ingress-apisix --set ingress-controller.config.apisix.adminAPIVersion=v3 --set ingress-controller.config.kubernetes.enableGatewayAPI=true --set dashboard.enabled=true ` config example is https://apisix.apache.org/docs/ingress-controller/tutorials/using-custom-plugins/. when i use admin api add custom-plugins ,is ok ` loony@FC006001PC01:~$ curl -i http://10.204.222.4:9180/apisix/admin/routes/1 -H "X-API-KEY: edd1c9f034335f136f87ad84b625c8f1" -X PUT -d ' > { > "uri": "/", > "plugins": { > "custom-response": { > "body": "Hello from your custom Plugin!" > } > }, > "upstream": { > "type": "roundrobin", > "nodes": { > "httpbin": 1 > } > } > }' HTTP/1.1 201 Created Date: Mon, 09 Sep 2024 06:52:44 GMT Content-Type: application/json Transfer-Encoding: chunked Connection: keep-alive Server: APISIX/3.9.0 Access-Control-Allow-Origin: * Access-Control-Allow-Credentials: true Access-Control-Expose-Headers: * Access-Control-Max-Age: 3600 X-API-VERSION: v3 {"value":{"plugins":{"custom-response":{"body":"Hello from your custom Plugin!"}},"uri":"/","id":"1","status":1,"upstream":{"type":"roundrobin","pass_host":"pass","nodes":{"httpbin":1},"scheme":"http","hash_on":"vars"},"priority":0,"update_time":1725864764,"create_time":1725864764},"key":"/apisix/routes/1"} loony@FC006001PC01:~$ curl 10.204.222.4 Hello from your custom Plugin!l ` but ingress error ` 2024-09-09T15:11:03+08:00 error apisix/apisix_route.go:380 failed to sync ApisixRoute to apisix {"error": "1 error occurred:\n\t* unknown plugin [custom-response]\n\n"} 2024-09-09T15:11:03+08:00 warn apisix/apisix_route.go:482 sync ApisixRoute failed, will retry {"object": {"Type":1,"Object":{"Key":"default/api-route","OldObject":null,"GroupVersion":"apisix.apache.org/v2"},"OldObject":null,"Tombstone":null}, "error": "1 error occurred:\n\t* unknown plugin [custom-response]\n\n"} ` -- 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-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org