From fbfe0116da24eace24850c99c33bec836d68973c Mon Sep 17 00:00:00 2001 From: Morten Olsen Date: Mon, 8 Dec 2025 22:24:33 +0100 Subject: [PATCH] expose ollama internally --- .../ollama/templates/virtual-service.yaml | 18 ++++++++++++++++++ apps/charts/ollama/values.yaml | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 apps/charts/ollama/templates/virtual-service.yaml diff --git a/apps/charts/ollama/templates/virtual-service.yaml b/apps/charts/ollama/templates/virtual-service.yaml new file mode 100644 index 0000000..0af9b24 --- /dev/null +++ b/apps/charts/ollama/templates/virtual-service.yaml @@ -0,0 +1,18 @@ +apiVersion: networking.istio.io/v1 +kind: VirtualService +metadata: + name: "{{ .Release.Name }}" + namespace: "{{ .Release.Namespace }}" +spec: + gateways: + - "{{ .Values.globals.istio.gateway }}" + - mesh + hosts: + - "{{ .Values.subdomain }}.{{ .Values.globals.domain }}" + - mesh + http: + - route: + - destination: + host: "{{ .Release.Name }}" + port: + number: 80 diff --git a/apps/charts/ollama/values.yaml b/apps/charts/ollama/values.yaml index 1b9ad7a..3f28216 100644 --- a/apps/charts/ollama/values.yaml +++ b/apps/charts/ollama/values.yaml @@ -2,4 +2,4 @@ image: repository: ollama/ollama tag: 0.13.1@sha256:8850b8b33936b9fb246e7b3e02849941f1151ea847e5fb15511f17de9589aea1 pullPolicy: IfNotPresent -subdomain: openwebui +subdomain: ollama