Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ description: Get up and running with large language models locally.

type: application

version: 1.22.0
version: 1.23.0

appVersion: "0.9.3"

annotations:
artifacthub.io/category: ai-machine-learning
artifacthub.io/changes: |
- kind: added
description: add support for setting priorityClassName in Deployment
- kind: fixed
description: fix post start hooks when using ollama.create modelfiles and custom directory paths

kubeVersion: "^1.16.0-0"
home: https://ollama.ai/
Expand Down
2 changes: 1 addition & 1 deletion templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,5 @@ Create the name of the service account to use
Models mount path
*/}}
{{- define "ollama.modelsMountPath" -}}
{{- printf "%s/models" ( default "/root/.ollama") }}
{{- printf "%s/models" (((.Values).ollama).mountPath | default "/root/.ollama") }}
{{- end -}}
2 changes: 1 addition & 1 deletion templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ spec:
cat <<EOF > {{ include "ollama.modelsMountPath" $ }}/{{ .name }}
{{- .template | nindent 20 }}
EOF
/bin/ollama create {{ .name }} -f {{ include "ollama.modelsMountPath" . }}/{{ .name }}
/bin/ollama create {{ .name }} -f {{ include "ollama.modelsMountPath" $ }}/{{ .name }}
{{- end }}
{{- if .configMapRef }}
/bin/ollama create {{ .name }} -f /models/{{ .name }}
Expand Down