Commit 837d4a5e authored by Alexandre Vincent's avatar Alexandre Vincent
Browse files

dos2unix virtual-service.yaml

parent 48312cdf
--- ---
# Source: /devops/azure/chart/templates/virtual-service.yaml # Source: /devops/azure/chart/templates/virtual-service.yaml
# #
{{- if .Values.istioDnsHost -}} {{- if .Values.istioDnsHost -}}
apiVersion: networking.istio.io/v1alpha3 apiVersion: networking.istio.io/v1alpha3
kind: VirtualService kind: VirtualService
metadata: metadata:
name: os-wellbore-ddms{{ include "os-wellbore-ddms.name-suffix" . }} name: os-wellbore-ddms{{ include "os-wellbore-ddms.name-suffix" . }}
namespace: osdu namespace: osdu
spec: spec:
hosts: hosts:
- "{{ .Values.istioDnsHost }}" - "{{ .Values.istioDnsHost }}"
gateways: gateways:
- istio-gateway - istio-gateway
http: http:
- match: - match:
- uri: - uri:
prefix: '{{ include "os-wellbore-ddms.prefix" . }}/*' prefix: '{{ include "os-wellbore-ddms.prefix" . }}/*'
# TODO make naming more uniform across services: prefix: "/api/{{ .Chart.Name }}/v2" # TODO make naming more uniform across services: prefix: "/api/{{ .Chart.Name }}/v2"
route: route:
- destination: - destination:
host: os-wellbore-ddms{{ include "os-wellbore-ddms.name-suffix" . }} host: os-wellbore-ddms{{ include "os-wellbore-ddms.name-suffix" . }}
port: port:
number: 80 number: 80
corsPolicy: corsPolicy:
maxAge: "60m" maxAge: "60m"
allowCredentials: true allowCredentials: true
allowHeaders: allowHeaders:
- Authorization - Authorization
- Data-Partition-Id - Data-Partition-Id
- Correlation-Id - Correlation-Id
allowMethods: allowMethods:
- POST - POST
- GET - GET
- PUT - PUT
- PATCH - PATCH
- DELETE - DELETE
allowOrigins: allowOrigins:
- prefix: "*" - prefix: "*"
{{- end -}} {{- end -}}
\ No newline at end of file
Supports Markdown
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