GhangZh commented on issue #1013:
URL:
https://github.com/apache/apisix-ingress-controller/issues/1013#issuecomment-1124688934
When I wanted to use traffic-spilit according to the documentation, I found
that it did not take effect after creating au. The configuration is as follows
```yaml
apiVersion: apisix.apache.org/v2beta3
kind: ApisixUpstream
metadata:
name: reviews
namespace: bookinfo
spec:
subsets:
- name: reviews-v1
labels:
app: reviews
version: v1
- name: reviews-v2
labels:
app: reviews
version: v1
---
apiVersion: apisix.apache.org/v2beta3
kind: ApisixRoute
metadata:
name: bookinfo
namespace: bookinfo
spec:
http:
- backends:
- serviceName: reviews
servicePort: 9080
subset: reviews-v1
weight: 50
- serviceName: reviews
servicePort: 9080
subset: reviews-v2
weight: 50
match:
hosts:
- bookinfo.com
paths:
- /*
name: reviews
```

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