Skip to content
Snippets Groups Projects
Commit 837d4a5e authored by Alexandre Vincent's avatar Alexandre Vincent
Browse files

dos2unix virtual-service.yaml

parent 48312cdf
No related branches found
No related tags found
1 merge request!239add virtual service
---
# Source: /devops/azure/chart/templates/virtual-service.yaml
---
# Source: /devops/azure/chart/templates/virtual-service.yaml
#
{{- if .Values.istioDnsHost -}}
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: os-wellbore-ddms{{ include "os-wellbore-ddms.name-suffix" . }}
namespace: osdu
spec:
hosts:
- "{{ .Values.istioDnsHost }}"
gateways:
- istio-gateway
http:
- match:
- uri:
namespace: osdu
spec:
hosts:
- "{{ .Values.istioDnsHost }}"
gateways:
- istio-gateway
http:
- match:
- uri:
prefix: '{{ include "os-wellbore-ddms.prefix" . }}/*'
# TODO make naming more uniform across services: prefix: "/api/{{ .Chart.Name }}/v2"
route:
- destination:
host: os-wellbore-ddms{{ include "os-wellbore-ddms.name-suffix" . }}
port:
number: 80
corsPolicy:
maxAge: "60m"
allowCredentials: true
allowHeaders:
- Authorization
- Data-Partition-Id
- Correlation-Id
allowMethods:
- POST
- GET
- PUT
- PATCH
- DELETE
allowOrigins:
route:
- destination:
host: os-wellbore-ddms{{ include "os-wellbore-ddms.name-suffix" . }}
port:
number: 80
corsPolicy:
maxAge: "60m"
allowCredentials: true
allowHeaders:
- Authorization
- Data-Partition-Id
- Correlation-Id
allowMethods:
- POST
- GET
- PUT
- PATCH
- DELETE
allowOrigins:
- prefix: "*"
{{- end -}}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment