iac/rmk/infrastructure/istio-config/virtualservice-mapper-api.yaml

39 lines
746 B
YAML

apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: mapper-api
namespace: gateway
labels:
app.kubernetes.io/managed-by: Helm
spec:
hosts:
- sarex.stand.sarex.tech
gateways:
- default/platform-gateway
http:
- match:
- uri:
prefix: /mapper/api/
rewrite:
uri: /api/
route:
- destination:
host: backend-svc.mapper.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