2018-07-11 11:02:24 +02:00
|
|
|
{{ if .Values.ingress.enabled }}
|
2018-02-17 04:29:52 +01:00
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
2018-07-31 10:48:34 +02:00
|
|
|
name: "{{ template "harbor.fullname" . }}-ingress"
|
2018-02-17 04:29:52 +01:00
|
|
|
labels:
|
2018-03-09 11:47:13 +01:00
|
|
|
{{ include "harbor.labels" . | indent 4 }}
|
2018-02-17 04:29:52 +01:00
|
|
|
annotations:
|
2018-03-09 11:47:13 +01:00
|
|
|
{{ toYaml .Values.ingress.annotations | indent 4 }}
|
2018-02-17 04:29:52 +01:00
|
|
|
spec:
|
2018-07-11 11:02:24 +02:00
|
|
|
{{ if eq .Values.externalProtocol "https" }}
|
2018-02-17 04:29:52 +01:00
|
|
|
tls:
|
|
|
|
- hosts:
|
|
|
|
- "{{ .Values.externalDomain }}"
|
2018-04-18 12:08:17 +02:00
|
|
|
- "{{ template "harbor.notaryFQDN" . }}"
|
2018-07-11 11:02:24 +02:00
|
|
|
{{ if eq .Values.ingress.tls.secretName "" }}
|
2018-02-17 04:29:52 +01:00
|
|
|
secretName: "{{ template "harbor.fullname" . }}-ingress"
|
2018-07-11 11:02:24 +02:00
|
|
|
{{ else }}
|
|
|
|
secretName: {{ .Values.ingress.tls.secretName }}
|
|
|
|
{{ end }}
|
2018-03-09 11:47:13 +01:00
|
|
|
{{ end }}
|
2018-02-17 04:29:52 +01:00
|
|
|
rules:
|
|
|
|
- host: "{{ .Values.externalDomain }}"
|
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- path: /
|
|
|
|
backend:
|
|
|
|
serviceName: {{ template "harbor.fullname" . }}-ui
|
|
|
|
servicePort: 80
|
2018-04-18 12:08:17 +02:00
|
|
|
- host: "{{ template "harbor.notaryFQDN" . }}"
|
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- path: /
|
|
|
|
backend:
|
|
|
|
serviceName: {{ template "harbor.notaryServiceName" . }}
|
|
|
|
servicePort: 4443
|
2018-06-23 19:37:59 +02:00
|
|
|
{{ end }}
|