aboutsummaryrefslogtreecommitdiff
path: root/grumpy/gitolite/templates/gitolite-ingress.yaml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--grumpy/gitolite/templates/gitolite-ingress.yaml22
1 files changed, 22 insertions, 0 deletions
diff --git a/grumpy/gitolite/templates/gitolite-ingress.yaml b/grumpy/gitolite/templates/gitolite-ingress.yaml
new file mode 100644
index 0000000..e6bf450
--- /dev/null
+++ b/grumpy/gitolite/templates/gitolite-ingress.yaml
@@ -0,0 +1,22 @@
+{{- if .Values.HostName }}
+apiVersion: {{ .Values.NetworkPolicy.ApiVersion }}
+kind: Ingress
+metadata:
+{{- if .Values.Ingress.Annotations }}
+ annotations:
+{{ toYaml .Values.Ingress.Annotations | indent 4 }}
+{{- end }}
+ name: {{ template "gitolite.fullname" . }}
+spec:
+ rules:
+ - host: {{ .Values.HostName | quote }}
+ http:
+ paths:
+ - backend:
+ serviceName: {{ template "gitolite.fullname" . }}
+ servicePort: {{ .Values.ServicePort }}
+{{- if .Values.Ingress.TLS }}
+ tls:
+{{ toYaml .Values.Ingress.TLS | indent 4 }}
+{{- end -}}
+{{- end }}