open-webui/kubernetes/helm/templates/webui-ingress.yaml
Bjørn Jørgensen be3400e3f8 rename more
2024-02-17 21:18:21 +01:00

23 lines
585 B
YAML

{{- if .Values.webui.ingress.enabled }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: open-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: open-webui-service
port:
number: {{ .Values.webui.servicePort }}
{{- end }}