Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: {{ .Values.conf.appName }}-vs
spec:
gateways:
- osdu-gateway
hosts:
{{- if .Values.conf.domain }}
- {{ printf "osdu.%s" .Values.conf.domain | quote }}
{{- else if .Values.conf.loadbalancerIP}}
- {{ (index (lookup "v1" "Service" "istio-ingress" "istio-ingress").status.loadBalancer.ingress 0).ip }}
{{- else if .Values.conf.loadbalancerHN}}
- {{ (index (lookup "v1" "Service" "istio-ingress" "istio-ingress").status.loadBalancer.ingress 0).hostname }}
{{- else }}
- "*"
{{- end }}
http:
- corsPolicy:
allowCredentials: true
allowHeaders:
- Authorization
- Data-Partition-Id
- Correlation-Id
- Content-Type
allowMethods:
- POST
- GET
- PATCH
- PUT
- DELETE
allowOrigins:
- prefix: '*'
maxAge: 60m
match:
- uri:
prefix: /api/notification/
route:
- destination:
host: {{ .Release.Name }}-ibm-notification-deploy
port:
number: 8080