2023-12-28 00:49:51 +00:00
|
|
|
{{- if .Values.webui.ingress.enabled }}
|
2023-12-24 15:34:33 +00:00
|
|
|
apiVersion: networking.k8s.io/v1
|
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
2024-02-19 20:58:25 +00:00
|
|
|
name: {{ include "open-webui.name" . }}
|
2024-02-19 21:23:36 +00:00
|
|
|
labels:
|
|
|
|
{{- include "open-webui.labels" . | nindent 4 }}
|
2024-02-19 22:22:10 +00:00
|
|
|
{{- with .Values.webui.ingress.annotations }}
|
2023-12-28 00:49:51 +00:00
|
|
|
annotations:
|
2024-02-19 21:23:36 +00:00
|
|
|
{{- toYaml . | nindent 4 }}
|
2024-02-19 22:22:10 +00:00
|
|
|
{{- end }}
|
2023-12-24 15:34:33 +00:00
|
|
|
spec:
|
2024-02-19 22:37:05 +00:00
|
|
|
{{- with .Values.webui.ingress.class }}
|
|
|
|
ingressClassName: {{ . }}
|
|
|
|
{{- end }}
|
|
|
|
{{- if .Values.webui.ingress.tls }}
|
|
|
|
tls:
|
|
|
|
- hosts:
|
|
|
|
- {{ .Values.webui.ingress.host | quote }}
|
|
|
|
secretName: {{ default (printf "%s-tls" .Release.Name) .Values.webui.ingress.existingSecret }}
|
|
|
|
{{- end }}
|
2023-12-24 15:34:33 +00:00
|
|
|
rules:
|
|
|
|
- host: {{ .Values.webui.ingress.host }}
|
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- path: /
|
|
|
|
pathType: Prefix
|
|
|
|
backend:
|
|
|
|
service:
|
2024-02-19 21:33:22 +00:00
|
|
|
name: {{ include "open-webui.name" . }}
|
2023-12-24 15:34:33 +00:00
|
|
|
port:
|
2024-02-19 22:32:50 +00:00
|
|
|
name: http
|
2023-12-28 00:49:51 +00:00
|
|
|
{{- end }}
|