istio: Content based routing not working
The following content based routing mostly taken from the documentation is not working
https://istio.io/docs/tasks/traffic-management-v1alpha3/request-routing.html
After passing the headers x-version: v2
, there is no difference
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: vs
spec:
hosts:
- service.default.svc.cluster.local
gateways:
- mesh
http:
- match:
- headers:
x-version:
exact: v2
route:
- destination:
name: service.default.svc.cluster.local
subset: v2
- route:
- destination:
name: service.default.svc.cluster.local
subset: v1
---
apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
name: dr
spec:
name: service.default.svc.cluster.local
subsets:
- name: v1
labels:
version: v1
- name: v2
labels:
version: v2
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (8 by maintainers)
Are you able to upgrade to the latest? Version 0.8 has just been released and in 0.7.1 a lot of v1alpha3 was labeled as “experimental”