webui-ingress.yaml 589 B

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