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-19 21:58:25 +01:00
|
|
|
name: {{ include "open-webui.name" . }}
|
2024-02-19 22:23:36 +01:00
|
|
|
labels:
|
|
|
|
{{- include "open-webui.labels" . | nindent 4 }}
|
|
|
|
{{- with .Values.webui.ingress.annotations }}
|
2023-12-28 01:49:51 +01:00
|
|
|
annotations:
|
2024-02-19 22:23:36 +01:00
|
|
|
{{- toYaml . | nindent 4 }}
|
2023-12-28 01:49:51 +01:00
|
|
|
{{- 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-19 22:33:22 +01:00
|
|
|
name: {{ include "open-webui.name" . }}
|
2023-12-24 16:34:33 +01:00
|
|
|
port:
|
2024-02-19 22:33:22 +01:00
|
|
|
number: {{ .Values.webui.service.port }}
|
2023-12-28 01:49:51 +01:00
|
|
|
{{- end }}
|