trayliang opened a new issue, #11199:
URL: https://github.com/apache/apisix/issues/11199
### Description
1、cat guangfang.yml
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
k8s.apisix.apache.org/plugin-config-name: "echo-and-cors-apc"
name: ingress-v1
namespace: hcloud-test
spec:
ingressClassName: apisix
rules:
- host: httpbin.org
http:
paths:
- path: /api/*
pathType: ImplementationSpecific
backend:
service:
name: laobaixing-h3-orgmanager-center-service
port:
number: 9093
cat plugin.yml
apiVersion: apisix.apache.org/v2
kind: ApisixPluginConfig
metadata:
name: echo-and-cors-apc
namespace: hcloud-test
spec:
plugins:
- name: echo
enable: true
config:
before_body: "This is the preface"
after_body: "This is the epilogue"
headers:
X-Foo: v1
X-Foo2: v2
- name: cors
enable: true
desc
step 1
kubectl apply -f plugin.yml
step 2:
kubectl apply -f guangfang.yml throw error :
2024-04-25T10:38:24+08:00 error ingress/ingress.go:222 failed to sync
Ingress to apisix {"error": "1 error occurred:\n\t* unexpected status
code 400; error message: {\"error_msg\":\"failed to fetch plugin config info by
plugin config id [dda5760e], response code: 404\"}\n\n\n"}
apisix provide doc
https://apisix.apache.org/zh/docs/ingress-controller/concepts/annotations/#rewrite-target
### Environment
- APISIX version (run `apisix version`):
- Operating system (run `uname -a`):
- OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
- etcd version, if relevant (run `curl
http://127.0.0.1:9090/v1/server_info`):
- APISIX Dashboard version, if relevant:
- Plugin runner version, for issues related to plugin runners:
- LuaRocks version, for installation issues (run `luarocks --version`):
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]