Commit dcf0835f authored by harshit aggarwal's avatar harshit aggarwal
Browse files

Merge branch 'virtual_service' into 'master'

Add Virtual Service

See merge request !113
parents 1379fb3e e7f14e8c
Pipeline #67653 failed with stages
in 33 minutes and 20 seconds
This diff is collapsed.
......@@ -28,3 +28,5 @@ image:
repository: #{container-registry}#.azurecr.io
branch: #{ENVIRONMENT_NAME}#
tag: #{Build.SourceVersion}#
istioDnsHost: #{ISTIO_DNS_HOST}#
---
# Source: /devops/azure/chart/templates/virtual-service.yaml
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: {{ .Chart.Name }}
namespace: osdu
spec:
hosts:
- "{{ .Values.istioDnsHost }}"
gateways:
- istio-gateway
http:
- match:
- uri:
prefix: "/api/{{ .Chart.Name }}/v1"
route:
- destination:
host: {{ .Chart.Name }}
port:
number: 80
corsPolicy:
maxAge: "60m"
allowCredentials: true
allowHeaders:
- Authorization
- Data-Partition-Id
- Correlation-Id
- Content-Type
allowMethods:
- POST
- GET
- PUT
- PATCH
- DELETE
allowOrigins:
- prefix: "*"
\ No newline at end of file
......@@ -23,3 +23,4 @@ image:
branch: master
tag: latest
istioDnsHost: ""
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment