From e08c144f0b93672eae7eff1f4914a8bc14751f00 Mon Sep 17 00:00:00 2001 From: Dario Thornhill Date: Sat, 13 Apr 2024 07:32:28 +0200 Subject: [PATCH] fix(helm): remove trailing slash The trailing `/` causes requests to be written with `//` and results in 404 responses from the ollama service. This results in ollama models being unusable. Removing the training slash here resolves the issue. --- kubernetes/helm/templates/_helpers.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kubernetes/helm/templates/_helpers.tpl b/kubernetes/helm/templates/_helpers.tpl index 0f514523..6233efab 100644 --- a/kubernetes/helm/templates/_helpers.tpl +++ b/kubernetes/helm/templates/_helpers.tpl @@ -10,7 +10,7 @@ ollama {{- if .Values.ollama.externalHost }} {{- printf .Values.ollama.externalHost }} {{- else }} -{{- printf "http://%s.%s.svc.cluster.local:%d/" (include "ollama.name" .) (.Release.Namespace) (.Values.ollama.service.port | int) }} +{{- printf "http://%s.%s.svc.cluster.local:%d" (include "ollama.name" .) (.Release.Namespace) (.Values.ollama.service.port | int) }} {{- end }} {{- end }}