From 258ae0c022e0c57e9e87c61e9ca5890ef0480da1 Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Fri, 23 Sep 2022 09:32:46 +0200 Subject: Initial commit --- templates/ingress.yaml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 templates/ingress.yaml (limited to 'templates/ingress.yaml') diff --git a/templates/ingress.yaml b/templates/ingress.yaml new file mode 100644 index 0000000..b51d695 --- /dev/null +++ b/templates/ingress.yaml @@ -0,0 +1,42 @@ +--- +{{- if .Values.ingress.enabled -}} +{{- $fullName := include "invidious.fullname" . -}} +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: {{ $fullName }} + labels: + {{- include "invidious.labels" . | nindent 4 }} + {{- with .Values.ingress.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +spec: + ingressClassName: {{ .Values.ingress.className }} + {{- 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: {{ .path }} + pathType: {{ .pathType | default "ImplementationSpecific"}} + backend: + service: + name: {{ $fullName }} + port: + number: {{ $.Values.service.port }} + {{- end }} + {{- end }} +{{- end }} +... -- cgit v1.1