From 8c6eeb9045125aa3b0666deccc3815e78112ea16 Mon Sep 17 00:00:00 2001 From: makefunstuff Date: Fri, 28 Jun 2024 15:50:46 +0300 Subject: though nginx works --- misc/nginx/templates/ingress.yaml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 misc/nginx/templates/ingress.yaml (limited to 'misc/nginx/templates/ingress.yaml') diff --git a/misc/nginx/templates/ingress.yaml b/misc/nginx/templates/ingress.yaml new file mode 100644 index 0000000..bd25f23 --- /dev/null +++ b/misc/nginx/templates/ingress.yaml @@ -0,0 +1,35 @@ +{{- if .Values.ingress.enabled -}} +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: nginx + annotations: + {{- range $key, $value := .Values.ingress.annotations }} + {{ $key }}: {{ $value | quote }} + {{- end }} +spec: + rules: + {{- range .Values.ingress.hosts }} + - host: {{ .host }} + http: + paths: + {{- range .paths }} + - path: {{ . }} + pathType: Prefix + backend: + service: + name: nginx + port: + number: 80 + {{- end }} + {{- end }} + tls: + {{- range .Values.ingress.tls }} + - hosts: + {{- range .hosts }} + - {{ . }} + {{- end }} + secretName: {{ .secretName }} + {{- end }} +{{- end }} + -- cgit 1.4.1-2-gfad0