|
пре 1 година | |
---|---|---|
.. | ||
README.md | 145e060855 Apply suggestions from code review | пре 1 година |
cpu.yaml | dccac8c8fa k8s example | пре 1 година |
gpu.yaml | 0409c1fa59 docker: set PATH, LD_LIBRARY_PATH, and capabilities (#1336) | пре 1 година |
Create the Ollama namespace, daemon set, and service
kubectl apply -f cpu.yaml
Port forward the Ollama service to connect and use it locally
kubectl -n ollama port-forward service/ollama 11434:80
Pull and run a model, for example orca-mini:3b
ollama run orca-mini:3b
Hardware acceleration in Kubernetes requires NVIDIA's k8s-device-plugin
. Follow the link for more details.
Once configured, create a GPU enabled Ollama deployment.
kubectl apply -f gpu.yaml