otwld / ollama-helm

Helm chart for Ollama on Kubernetes
https://artifacthub.io/packages/helm/ollama-helm/ollama
MIT License
216 stars 36 forks source link

cannot access '/root/.ollama' #75

Closed rwlove closed 1 month ago

rwlove commented 1 month ago

What happened?

Upgraded ollama to 0.2.7 and the chart doesn't seem to to work with a supplied PVC anymore. Existing PVC worked fine with the chart before the upgrade. I think it has something to do with permissions, but I'm not sure how to fix it. It seems related to this: https://github.com/ollama/ollama/issues/4732.

    Mounts:
      /root/.ollama from ollama-data (rw)
...
Volumes:
  ollama-data:
    Type:       PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
    ClaimName:  ollama-data-pvc
    ReadOnly:   false
root@ollama-75bd76f944-2c6br:/# ls /root/.ollama -l
ls: cannot access '/root/.ollama': Input/output error

Chart version

ollama-0.45.0

Kubernetes version

N/A

Kubernetes distribution

N/A

Relevant log output

No response

Your values.yaml

persistentVolume:
      enabled: true
      existingClaim: ollama-data-pvc


### Additional context

_No response_
rwlove commented 1 month ago

I'm not exactly sure what I did but I removed and reconciled the chart and it seems to be working now.