webui-ingress.yaml 878 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
spec:
duhow's avatar
duhow committed
13
14
15
16
17
18
19
20
21
  {{- 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 }}
22
23
24
25
26
27
28
29
  rules:
  - host: {{ .Values.webui.ingress.host }}
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
30
            name: {{ include "open-webui.name" . }}
31
            port:
duhow's avatar
duhow committed
32
              name: http
33
{{- end }}