2023-12-28 01:49:51 +01:00
|
|
|
{{- if .Values.webui.ingress.enabled }}
|
2023-12-24 16:34:33 +01:00
|
|
|
apiVersion: networking.k8s.io/v1
|
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
2024-02-17 21:18:21 +01:00
|
|
|
name: open-webui-ingress
|
2023-12-24 16:34:33 +01:00
|
|
|
namespace: {{ .Values.namespace }}
|
2023-12-28 01:49:51 +01:00
|
|
|
{{- if .Values.webui.ingress.annotations }}
|
|
|
|
annotations:
|
|
|
|
{{ toYaml .Values.webui.ingress.annotations | trimSuffix "\n" | indent 4 }}
|
|
|
|
{{- end }}
|
2023-12-24 16:34:33 +01:00
|
|
|
spec:
|
|
|
|
rules:
|
|
|
|
- host: {{ .Values.webui.ingress.host }}
|
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- path: /
|
|
|
|
pathType: Prefix
|
|
|
|
backend:
|
|
|
|
service:
|
2024-02-17 21:18:21 +01:00
|
|
|
name: open-webui-service
|
2023-12-24 16:34:33 +01:00
|
|
|
port:
|
|
|
|
number: {{ .Values.webui.servicePort }}
|
2023-12-28 01:49:51 +01:00
|
|
|
{{- end }}
|