From 745347bc347406a48c9e7cf20c17b8c3f1d8e961 Mon Sep 17 00:00:00 2001 From: Max Resnick Date: Thu, 5 Mar 2020 20:58:34 -0800 Subject: add znc --- grumpy/znc/templates/ingress.yaml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 grumpy/znc/templates/ingress.yaml (limited to 'grumpy/znc/templates/ingress.yaml') diff --git a/grumpy/znc/templates/ingress.yaml b/grumpy/znc/templates/ingress.yaml new file mode 100644 index 0000000..d307bf1 --- /dev/null +++ b/grumpy/znc/templates/ingress.yaml @@ -0,0 +1,37 @@ +{{- if .Values.ingress.enabled -}} +{{- $fullName := include "znc.fullname" . -}} +{{- $svcPort := .Values.service.port -}} +apiVersion: extensions/v1beta1 +kind: Ingress +metadata: + name: {{ $fullName }} + labels: +{{ include "znc.labels" . | indent 4 }} + {{- with .Values.ingress.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +spec: +{{- if .Values.ingress.tls }} + tls: + {{- range .Values.ingress.tls }} + - hosts: + {{- range .hosts }} + - {{ . | quote }} + {{- end }} + secretName: {{ .secretName }} + {{- end }} +{{- end }} + rules: + {{- range .Values.ingress.hosts }} + - host: {{ .host | quote }} + http: + paths: + {{- range .paths }} + - path: {{ . }} + backend: + serviceName: {{ $fullName }} + servicePort: {{ $svcPort }} + {{- end }} + {{- end }} +{{- end }} -- cgit v1.2.3