-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathtraefik-ingress.yaml
More file actions
143 lines (143 loc) · 5 KB
/
traefik-ingress.yaml
File metadata and controls
143 lines (143 loc) · 5 KB
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
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
{{/*
Traefik Ingress - Data Ingestion and Reporting Service routes
Replaces: k8s-manifests/traefik-ingress-dataingestion.yaml
Only rendered when traefikIngress.enabled is true.
Includes body-size-limit middleware.
*/}}
{{- if .Values.traefikIngress.enabled }}
{{- $fullName := include "dataingestion-service.fullname" . -}}
{{- $svcPort := .Values.service.port -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ $fullName }}-traefik-ingress
labels:
{{- include "dataingestion-service.labels" . | nindent 4 }}
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-production"
traefik.ingress.kubernetes.io/router.middlewares: {{ .Release.Namespace }}-body-size-limit@kubernetescrd
spec:
ingressClassName: traefik
tls:
- secretName: {{ .Values.ingressHost }}
hosts:
- {{ .Values.ingressHost }}
rules:
- host: {{ .Values.ingressHost }}
http:
paths:
- path: "/ingestion/"
pathType: Prefix
backend:
service:
name: {{ $fullName }}
port:
number: {{ $svcPort }}
{{- if eq .Values.reportingService.enabled "true" }}
- path: "/reporting/person-svc/"
pathType: Prefix
backend:
service:
name: person-reporting-service
port:
number: {{ .Values.reportingService.personReportingServicePort }}
- path: "/reporting/organization-svc/"
pathType: Prefix
backend:
service:
name: organization-reporting-service
port:
number: {{ .Values.reportingService.organizationReportingServicePort }}
- path: "/reporting/investigation-svc/"
pathType: Prefix
backend:
service:
name: investigation-reporting-service
port:
number: {{ .Values.reportingService.investigationReportingServicePort }}
- path: "/reporting/observation-svc/"
pathType: Prefix
backend:
service:
name: observation-reporting-service
port:
number: {{ .Values.reportingService.observationReportingServicePort }}
- path: "/reporting/post-processing-svc/"
pathType: Prefix
backend:
service:
name: post-processing-reporting-service
port:
number: {{ .Values.reportingService.postProcessingReportingServicePort }}
- path: "/reporting/ldfdata-svc/"
pathType: Prefix
backend:
service:
name: ldfdata-reporting-service
port:
number: {{ .Values.reportingService.ldfdataReportingServicePort }}
{{- end }}
{{- if eq .Values.dataprocessingService.enabled "true" }}
- path: "/rti/"
pathType: Prefix
backend:
service:
name: data-processing-service
port:
number: {{ .Values.dataprocessingService.port }}
{{- end }}
{{- if eq .Values.nndService.enabled "true" }}
- path: "/extraction/"
pathType: Prefix
backend:
service:
name: nnd-service
port:
number: {{ .Values.nndService.port }}
{{- end }}
{{- if eq .Values.srtedataService.enabled "true" }}
- path: "/data/"
pathType: Prefix
backend:
service:
name: srte-data-service
port:
number: {{ .Values.srtedataService.port }}
{{- end }}
{{- if eq .Values.dataExtraction.enabled "true" }}
- path: "/data-extraction/"
pathType: Prefix
backend:
service:
name: data-extraction-service
port:
number: {{ .Values.dataExtraction.port }}
{{- end }}
{{- if eq .Values.caseNotification.enabled "true" }}
- path: "/case-notification/"
pathType: Prefix
backend:
service:
name: case-notification-service
port:
number: {{ .Values.caseNotification.port }}
{{- end }}
{{- if eq .Values.xmlHl7Parser.enabled "true" }}
- path: "/hl7-parser/"
pathType: Prefix
backend:
service:
name: xml-hl7-parser-service
port:
number: {{ .Values.xmlHl7Parser.port }}
{{- end }}
{{- if eq .Values.compare.enabled "true" }}
- path: "/comparison/"
pathType: Prefix
backend:
service:
name: data-compare-api-service
port:
number: {{ .Values.compare.port }}
{{- end }}
{{- end }}