Skip to content

Instantly share code, notes, and snippets.

@rinormaloku
Created January 5, 2019 11:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rinormaloku/580a872b330e14111958aaac20f65aa6 to your computer and use it in GitHub Desktop.
Save rinormaloku/580a872b330e14111958aaac20f65aa6 to your computer and use it in GitHub Desktop.
[Virtual Services] config for the series https://rinormaloku.com/istio-an-introduction/ #istio #kubernetes
kind: VirtualService
metadata:
name: sa-external-services
spec:
hosts:
- "*"
gateways:
- http-gateway # 1
http:
- match:
- uri:
exact: /
- uri:
exact: /callback
- uri:
prefix: /static
- uri:
regex: '^.*\.(ico|png|jpg)$'
route:
- destination:
host: sa-frontend # 2
port:
number: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment