Skip to content

Instantly share code, notes, and snippets.

@farukonder
Created September 24, 2018 15:11
Show Gist options
  • Save farukonder/b6a163d73f9d046fccbd62dfdd82ef32 to your computer and use it in GitHub Desktop.
Save farukonder/b6a163d73f9d046fccbd62dfdd82ef32 to your computer and use it in GitHub Desktop.
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: virtual-service-guestbook
spec:
hosts:
- '*'
gateways:
- guestbook-gateway
http:
- match:
- headers:
cookie:
user: qa
route:
- destination:
port:
number: 7777
host: guestbook.qa.svc.cluster.local
- match:
uri:
prefix: /reviews/
route:
- destination:
port:
number: 9080
host: reviews.prod.svc.cluster.local
weight: 80
- destination:
host: reviews.qa.svc.cluster.local
weight: 20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment