1a7522a8ff385e02e9d27bfc444fd09879421e39
[it/dep.git] / infra / 10-Nexus / helm / templates / ingress.yaml
1 {{- $fullName := include "nexus.fullname" . -}}
2 apiVersion: extensions/v1beta1
3 kind: Ingress
4 metadata:
5   name: {{ $fullName }}
6   labels:
7     app: {{ template "nexus.name" . }}
8     chart: {{ template "nexus.chart" . }}
9     release: {{ .Release.Name }}
10     heritage: {{ .Release.Service }}
11 spec:
12   tls:
13   - hosts:
14     - docker.{{ .Values.ingress.hostpostfix }}
15     secretName: {{ include "common.repositorycert" . }}
16   rules:
17     - host: nexus.{{ .Values.ingress.hostpostfix }}
18       http:
19         paths:
20           - backend:
21               serviceName: {{ $fullName }}
22               servicePort: nexus
23     - host: docker.{{ .Values.ingress.hostpostfix }}
24       http:
25         paths:
26           - backend:
27               serviceName: {{ $fullName }}
28               servicePort: docker