iac/rmk/infrastructure/istio-config/virtualservice-issues-frontend.yaml

39 lines
751 B
YAML

apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: issues-frontend
namespace: default
labels:
app.kubernetes.io/managed-by: Helm
spec:
hosts:
- sarex.stand.sarex.tech
gateways:
- default/platform-gateway
http:
- match:
- uri:
prefix: /issues/static/
rewrite:
uri: /
route:
- destination:
host: frontend-svc.issues.svc.cluster.local
port:
number: 80
corsPolicy:
allowOrigins:
- regex: (https://.*\.sarex\.io)|(https://localhost:.*)
allowMethods:
- POST
- GET
- OPTIONS
- PUT
- DELETE
- PATCH
allowHeaders:
- Authorization
- Content-Type
- Identity
maxAge: 24h