Hi,
I got sockshop
https://microservices-demo.github.io/
working with Istio 1.4.0 but the Virtual Service def seems verbose. Is there a simpler approach?
Tnx
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: mysockshop-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: frontend-vs
spec:
hosts:
- "*"
gateways:
- mysockshop-gateway
http:
- match:
- uri:
exact: /
- uri:
exact: /cart
- uri:
exact: /catalogue
- uri:
prefix: /catalogue
- uri:
prefix: /css
- uri:
prefix: /js
- uri:
prefix: /img
- uri:
regex: '^.*\.(ico|png|jpg|html)$'
route:
- destination:
host: front-end.mysockshop.svc.cluster.local