1
0
molgenis-ops-docker-helm/jenkins/v0.1.x/templates/ingress.yaml

36 lines
873 B
YAML
Raw Normal View History

2018-06-22 22:11:11 +02:00
{{- if .Values.ingress.enabled }}
{{- range .Values.ingress.hosts }}
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
2018-06-22 22:11:11 +02:00
name: "{{ $.Release.Name }}-ingress"
labels:
2018-06-25 22:53:22 +02:00
app: {{ template "jenkins.fullname" $ }}
2018-06-22 22:11:11 +02:00
chart: "{{ $.Chart.Name }}-{{ $.Chart.Version }}"
release: "{{ $.Release.Name }}"
heritage: "{{ $.Release.Service }}"
annotations:
2018-06-22 22:11:11 +02:00
{{- if .tls }}
ingress.kubernetes.io/secure-backends: "true"
{{- end }}
{{- range $key, $value := .annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
spec:
2018-06-22 22:11:11 +02:00
rules:
- host: {{ .name }}
http:
paths:
- path: {{ default "/" .path }}
backend:
2018-06-25 22:53:22 +02:00
serviceName: {{ template "jenkins.fullname" $ }}
2018-06-22 22:11:11 +02:00
servicePort: 80
{{- if .tls }}
tls:
2018-06-22 22:11:11 +02:00
- hosts:
- {{ .name }}
secretName: {{ .tlsSecret }}
{{- end }}
2018-06-22 22:11:11 +02:00
---
{{- end }}
2018-06-22 22:11:11 +02:00
{{- end }}