open-webui/kubernetes/helm/templates/webui-ingress.yaml

34 lines
878 B
YAML
Raw Permalink Normal View History

2023-12-28 01:49:51 +01:00
{{- if .Values.webui.ingress.enabled }}
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 }}
2024-02-19 23:22:10 +01:00
{{- 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 }}
2024-02-19 23:22:10 +01:00
{{- end }}
spec:
2024-02-19 23:37:05 +01: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 }}
rules:
- host: {{ .Values.webui.ingress.host }}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: {{ include "open-webui.name" . }}
port:
2024-02-19 23:32:50 +01:00
name: http
2023-12-28 01:49:51 +01:00
{{- end }}