pioneer-hash opened a new issue #379:
URL: https://github.com/apache/apisix-ingress-controller/issues/379
### Issue description
When I set backends in route.yaml, the synchronization configuration
received an error ,Observation logs are a problem with the traffic-split plugin.
This is my yaml
```yaml
apiVersion: apisix.apache.org/v2alpha1
kind: ApisixRoute
metadata:
name: test-cookie-1
namespace: default
spec:
http:
- name: rule1
priority: 0
match:
paths:
- /*
backends:
- serviceName: web
servicePort: 80
- serviceName: web2
servicePort: 80
- name: rule2
priority: 2
match:
paths:
- /*
exprs:
- subject:
scope: Cookie
name: name
op: Equal
value: zhangsan
- subject:
scope: Header
name: name
op: NotEqual
value: lisi
backend:
serviceName: web1
servicePort: 80
```
this is error.log
```
2021-04-15T17:01:34+08:00 warn controller/apisix_route.go:205 sync
ApisixRoute failed, will retry {"object":
{"Type":1,"Object":{"Key":"default/test-cookie-1","OldObject":null,"GroupVersion":"apisix.apache.org/v2alpha1"},"Tombstone":null},
"error": "1 error occurred:\n\t* unexpected status code 400; error message:
{\"error_msg\":\"unknown plugin [traffic-split]\"}\n\n\n"}
2021-04-15T17:02:34+08:00 error apisix/route.go:187 failed to
create route: unexpected status code 400; error message: {"error_msg":"unknown
plugin [traffic-split]"}
2021-04-15T17:02:34+08:00 warn controller/apisix_route.go:205 sync
ApisixRoute failed, will retry {"object":
{"Type":1,"Object":{"Key":"default/test-cookie-1","OldObject":null,"GroupVersion":"apisix.apache.org/v2alpha1"},"Tombstone":null},
"error": "1 error occurred:\n\t* unexpected status code 400; error message:
{\"error_msg\":\"unknown plugin [traffic-split]\"}\n\n\n"}
```
### Environment
* your apisix-ingress-controller version (output of
`apisix-ingress-controller version --long`);
apisix-ingress-controller version :0.5
apisix version : 2.5-centos
* your Kubernetes cluster version (output of `kubectl version`);
* if you run apisix-ingress-controller in Bare-metal environment, also show
your OS version (`uname -a`).
### Minimal test code / Steps to reproduce the issue
1.
2.
3.
### What's the actual result? (including assertion message & call stack if
applicable)
### What's the expected result?
--
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:
[email protected]