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

43 lines
809 B
YAML

apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: documentations-api
namespace: default
labels:
app.kubernetes.io/managed-by: Helm
spec:
hosts:
- sarex.stand.sarex.tech
gateways:
- default/platform-gateway
http:
- match:
- uri:
prefix: /documentations/api/
rewrite:
uri: /api/
route:
- destination:
host: backend-api-svc.documentations.svc.cluster.local
port:
number: 80
corsPolicy:
allowOrigins:
- exact: '*'
allowMethods:
- POST
- GET
- OPTIONS
- PUT
- DELETE
- PATCH
- HEAD
allowHeaders:
- Authorization
- Content-Type
- Identity
- Range
- Cache-control
allowCredentials: true
maxAge: 24h