mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
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:
committed by
Reinhard Nägele
parent
78e1ce860c
commit
d10f1eaae3
@@ -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 }}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user