Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 500 Bytes

virtual-service-add-headers.md

File metadata and controls

20 lines (17 loc) · 500 Bytes

Add Request Headers with a virtual service

One is able to replace or add a Header via a virtual service by adding a headers field to the spec block of a virtual service.

apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: reviews-route
spec:
  hosts:
  - reviews.prod.svc.cluster.local
  http:
  - headers:
      request:
        set:
          test: true

Documentation