-
Notifications
You must be signed in to change notification settings - Fork 55
/
ingress-dash.yaml
38 lines (38 loc) · 1 KB
/
ingress-dash.yaml
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
{{- if .Values.dash.ingress.enabled -}}
{{- $fullName := include "tyk-pro.fullname" . -}}
{{- $ingressPath := .Values.dash.ingress.path -}}
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: dash-ing-{{ $fullName }}
labels:
app: dash-ing-{{ $fullName }}
chart: {{ include "tyk-pro.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
namespace: {{ .Values.nameSpace }}
annotations:
ingress.kubernetes.io/rewrite-target: /
kubernetes.io/ingress.class: "nginx"
spec:
{{- if .Values.dash.ingress.tls }}
tls:
{{- range .Values.dash.ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ . | quote }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}
rules:
{{- range .Values.dash.ingress.hosts }}
- host: {{ . | quote }}
http:
paths:
- path: {{ $ingressPath }}
backend:
serviceName: dashboard-{{ $fullName }}
servicePort: http
{{- end }}
{{- end }}