Add ingress to gitlab-ce chart (#1251)

* added ingress to gitlab-ce chart

* added standard labels to ingress

* updated label for gitlab ingress
This commit is contained in:
Ryan Hartje
2017-07-28 09:11:06 +02:00
committed by Reinhard Nägele
parent 78e1ce860c
commit d10f1eaae3
2 changed files with 51 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
{{- if .Values.ingress.enabled }}
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
{{- if .Values.ingress.annotations }}
annotations:
{{ toYaml .Values.ingress.annotations | indent 4 }}
{{- end }}
name: {{ template "fullname" . }}
labels:
app: {{ template "fullname" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
spec:
rules:
- host: {{ .Values.ingress.url | quote }}
{{- if (not (empty .Values.ingress.tls)) }}
https:
paths:
- path: /
backend:
serviceName: {{ template "fullname" . }}
servicePort: {{ .Values.httpsPort }}
{{- else }}
http:
paths:
- path: /
backend:
serviceName: {{ template "fullname" . }}
servicePort: {{ .Values.httpPort }}
{{- end }}
{{- if .Values.ingress.tls }}
tls:
{{ toYaml .Values.ingress.tls | indent 4 }}
{{- end -}}
{{- end }}
+13
View File
@@ -24,6 +24,19 @@ image: gitlab/gitlab-ce:9.1.0-ce.0
##
serviceType: LoadBalancer
## Ingress configuration options
##
ingress:
annotations:
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
enabled: false
tls:
# - secretName: gitlab.cluster.local
# hosts:
# - gitlab.cluster.local
url: gitlab.cluster.local
## Configure external service ports
## ref: http://kubernetes.io/docs/user-guide/services/
sshPort: 22