Skip to content

Instantly share code, notes, and snippets.

@berinle
Last active January 19, 2021 16:27
Show Gist options
  • Select an option

  • Save berinle/0d92d5caa24545702e83fe6a1c8a0ea8 to your computer and use it in GitHub Desktop.

Select an option

Save berinle/0d92d5caa24545702e83fe6a1c8a0ea8 to your computer and use it in GitHub Desktop.
working_istio_vs_react
---
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: foo-gateway
spec:
selector:
istio: ingressgateway # use istio default controller
servers:
- port:
number: 80
name: http
protocol: HTTP
hosts:
- "*"
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: foo-vs
spec:
hosts:
- "*"
gateways:
- foo-gateway
http:
- match:
- uri:
prefix: "/foo"
rewrite:
uri: "/"
route:
- destination:
host: foo
port:
number: 80
- match:
- uri:
prefix: "/static"
- uri:
regex: '^.*\.(ico|png|jpg)$'
route:
- destination:
host: foo
port:
number: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment