Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add ollama-operator in example #4045

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
28 changes: 28 additions & 0 deletions examples/kubernetes-operator/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Deploy Ollama to Kubernetes Operator


### Prerequisites

- Install [Ollama-operator](https://github.com/nekomeowww/ollama-operator)

### Steps

1. create a `Model` CR, serving model `phi` as an example:

```
kubectl apply -f - << EOF
apiVersion: ollama.ayaka.io/v1
kind: Model
metadata:
name: phi
spec:
image: phi
EOF
```

2. forward the ports to access the model outside cluster:
```
kubectl port-forward svc/ollama-model-phi ollama
```

3. Install [ollama cli](https://github.com/ollama/ollama) and interact with the model with either API or ollama CLI( e.g. `ollama run phi` ).