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

39 lines
767 B
YAML

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