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: