webui-ingress.yaml 589 Bytes
Newer Older
1
{{- if .Values.webui.ingress.enabled }}
2
3
4
5
6
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: ollama-webui-ingress
  namespace: {{ .Values.namespace }}
7
8
9
10
{{- if .Values.webui.ingress.annotations }}
  annotations:
{{ toYaml .Values.webui.ingress.annotations | trimSuffix "\n" | indent 4 }}
{{- end }}
11
12
13
14
15
16
17
18
19
20
21
22
spec:
  rules:
  - host: {{ .Values.webui.ingress.host }}
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: ollama-webui-service
            port:
              number: {{ .Values.webui.servicePort }}
23
{{- end }}