Newer
Older
---
# Source: /devops/azure/chart/templates/virtual-service.yaml
{{- if .Values.istioDnsHost }}
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: {{ .Chart.Name }}
namespace: osdu
spec:
hosts:
- "{{ .Values.istioDnsHost }}"
gateways:
- istio-gateway
http:
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
- name: "Settings specific to the Swagger page and resources"
match:
- uri:
prefix: "/api/indexer/v2/webjars"
- uri:
prefix: "/api/indexer/v2/swagger-resources"
- uri:
prefix: "/api/indexer/v2/v3/api-docs"
- uri:
prefix: "/api/indexer/v2/swagger-ui"
route:
- destination:
host: {{ .Chart.Name }}
port:
number: 80
headers:
response:
set:
cache-control: "private, max-age=300"
corsPolicy:
maxAge: "60m"
allowCredentials: true
allowHeaders:
- Authorization
- Data-Partition-Id
- Correlation-Id
- Content-Type
- cache-control
allowMethods:
- POST
- GET
- PUT
- PATCH
- DELETE
allowOrigins:
- prefix: "*"
- name: "Settings specific to the QueryAttributeApi API"
match:
- uri:
prefix: "/api/indexer/v2/query/attributes"
route:
- destination:
host: {{ .Chart.Name }}
port:
number: 80
headers:
response:
set:
cache-control: "private, max-age=300, stale-while-revalidate=600, stale-if-error=600"
vary: "data-partition-id,authorization"
corsPolicy:
maxAge: "60m"
allowCredentials: true
allowHeaders:
- Authorization
- Data-Partition-Id
- Correlation-Id
- Content-Type
- cache-control
allowMethods:
- POST
- GET
- PUT
- PATCH
- DELETE
allowOrigins:
- prefix: "*"
- name: "Default settings, applies to everything not matched above"
match:
route:
- destination:
host: {{ .Chart.Name }}
port:
number: 80
corsPolicy:
maxAge: "60m"
allowCredentials: true
allowHeaders:
- Authorization
- Data-Partition-Id
- Correlation-Id
allowMethods:
- POST
- GET
- PUT
- PATCH
- DELETE
allowOrigins:
- prefix: "*"
{{- end }}