mirror of
https://github.com/open-webui/open-webui
synced 2024-11-16 13:40:55 +00:00
24 lines
589 B
YAML
24 lines
589 B
YAML
{{- if .Values.webui.ingress.enabled }}
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: ollama-webui-ingress
|
|
namespace: {{ .Values.namespace }}
|
|
{{- if .Values.webui.ingress.annotations }}
|
|
annotations:
|
|
{{ toYaml .Values.webui.ingress.annotations | trimSuffix "\n" | indent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
rules:
|
|
- host: {{ .Values.webui.ingress.host }}
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: ollama-webui-service
|
|
port:
|
|
number: {{ .Values.webui.servicePort }}
|
|
{{- end }}
|