From 5cf03b48a0e04eee7c943b4bb90ddab6026d02b1 Mon Sep 17 00:00:00 2001 From: Zadjad Rezai <121857296+zadjadr@users.noreply.github.com> Date: Wed, 20 Nov 2024 08:01:31 +0000 Subject: [PATCH] feat: allow additionalHosts for ingress --- charts/open-webui/templates/ingress.yaml | 15 +++++++++++++++ charts/open-webui/values.yaml | 1 + 2 files changed, 16 insertions(+) diff --git a/charts/open-webui/templates/ingress.yaml b/charts/open-webui/templates/ingress.yaml index 12e3a28..8ea1025 100644 --- a/charts/open-webui/templates/ingress.yaml +++ b/charts/open-webui/templates/ingress.yaml @@ -17,6 +17,9 @@ spec: tls: - hosts: - {{ .Values.ingress.host | quote }} + {{- range .Values.ingress.additionalHosts }} + - {{ . | quote }} + {{- end }} secretName: {{ default (printf "%s-tls" .Release.Name) .Values.ingress.existingSecret }} {{- end }} rules: @@ -30,4 +33,16 @@ spec: name: {{ include "open-webui.name" . }} port: name: http + {{- range .Values.ingress.additionalHosts }} + - host: {{ . | quote }} + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: {{ include "open-webui.name" $ }} + port: + name: http + {{- end }} {{- end }} diff --git a/charts/open-webui/values.yaml b/charts/open-webui/values.yaml index a6e8e09..734a038 100644 --- a/charts/open-webui/values.yaml +++ b/charts/open-webui/values.yaml @@ -57,6 +57,7 @@ ingress: # nginx.ingress.kubernetes.io/rewrite-target: / annotations: {} host: "" + additionalHosts: [] tls: false existingSecret: "" persistence: