diff --git a/kubernetes/helm/templates/ollama-service.yaml b/kubernetes/helm/templates/ollama-service.yaml index 75d06e69d..becb6ad27 100644 --- a/kubernetes/helm/templates/ollama-service.yaml +++ b/kubernetes/helm/templates/ollama-service.yaml @@ -16,6 +16,6 @@ spec: ports: - protocol: TCP name: http - port: http - targetPort: {{ .port }} + port: {{ .port }} + targetPort: http {{- end }} diff --git a/kubernetes/helm/templates/ollama-statefulset.yaml b/kubernetes/helm/templates/ollama-statefulset.yaml index db7ffe456..a87aeab09 100644 --- a/kubernetes/helm/templates/ollama-statefulset.yaml +++ b/kubernetes/helm/templates/ollama-statefulset.yaml @@ -70,7 +70,7 @@ spec: - name: data emptyDir: {} {{- else if and .Values.ollama.persistence.enabled (not .Values.ollama.persistence.existingClaim) }} - {} + [] volumeClaimTemplates: - metadata: name: data diff --git a/kubernetes/helm/templates/webui-service.yaml b/kubernetes/helm/templates/webui-service.yaml index bd87c853d..bfae9294d 100644 --- a/kubernetes/helm/templates/webui-service.yaml +++ b/kubernetes/helm/templates/webui-service.yaml @@ -11,9 +11,9 @@ spec: type: {{ .type }} ports: - protocol: TCP - port: http - targetPort: {{ .port }} + port: {{ .port }} + targetPort: http {{- if .nodePort }} - nodePort: {{ .nodePort }} + nodePort: {{ .nodePort | int }} {{- end }} {{- end }}