VirtualServiceUnreachableRule
You will receive this message:
kind: VirtualService
metadata:
name: sample-foo-cluster01
namespace: foo
hosts:
- sample.foo.svc.cluster.local
http:
delay:
fixedDelay: 5s
percentage:
route:
- destination:
host: sample.foo.svc.cluster.local
- mirror:
route:
- destination:
subset: v1
In this example, the virtual service specifies both a fault and a mirror. Having both is allowed, but they must be in the same route entry. Here the user has used two different http route entries (one for each -
), the first overrides the second.
How to resolve
Be careful with YAML formatting when setting up complex routing.