I tried hard searching for a solution or doc for this but there is nothing out there which will be straight forward explaining this.
There is some information here: https://istio.io/docs/reference/config/networking/v1alpha3/virtual-service/#Headers
but how to use it is not there. Someone asked in THIS github issue to make a doc but that is not done yet too.
Here is my VS:
spec: gateways: - my-gateway hosts: - '*' http: - match: - uri: prefix: /api/browse rewrite: uri: / route: - destination: host: browse.browse-relqa.svc.cluster.local port: number: 80 subset: v1 weight: 100 - destination: host: browse.browse-relqa.svc.cluster.local port: number: 80 subset: v2 weight: 0
What should I do to add one header with following key value – “name: test”