webui-ingress.yaml 604 Bytes
Newer Older
1
{{- if .Values.webui.ingress.enabled }}
2
3
4
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
duhow's avatar
duhow committed
5
  name: {{ include "open-webui.name" . }}
duhow's avatar
duhow committed
6
7
  labels:
    {{- include "open-webui.labels" . | nindent 4 }}
duhow's avatar
duhow committed
8
  {{- with .Values.webui.ingress.annotations }}
9
  annotations:
duhow's avatar
duhow committed
10
    {{- toYaml . | nindent 4 }}
duhow's avatar
duhow committed
11
  {{- end }}
12
13
14
15
16
17
18
19
20
spec:
  rules:
  - host: {{ .Values.webui.ingress.host }}
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
21
            name: {{ include "open-webui.name" . }}
22
            port:
23
              number: {{ .Values.webui.service.port }}
24
{{- end }}