virtual-service.yaml 958 Bytes
Newer Older
1
2
---
# Source: /devops/azure/chart/templates/virtual-service.yaml
3
#
4
{{- if .Values.istioDnsHost }}
5
6
7
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
8
  name:  os-wellbore-ddms{{ include "os-wellbore-ddms.name-suffix" . }}
9
10
11
12
13
14
15
16
17
  namespace: osdu
spec:
  hosts:
  - "{{ .Values.istioDnsHost }}"
  gateways:
  - istio-gateway
  http:  
  - match:
    - uri:
18
        prefix: '{{ include "os-wellbore-ddms.prefix" . }}/'
19
        # TODO make naming more uniform across services: prefix: "/api/{{ .Chart.Name }}/v2"
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
    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:
39
      - prefix: "*"
40
{{- end }}