Skip to content

Getting Started

Install operator

Don't have an existing Kubernetes cluster?

Run the following commands to create a new Kubernetes cluster with kind:

shell
brew install --cask docker
brew install docker kind kubectl
wget https://raw.githubusercontent.com/nekomeowww/ollama-operator/main/hack/kind-config.yaml
kind create cluster --config kind-config.yaml
shell
Invoke-WebRequest  -OutFile "./Docker Desktop Installer.exe"
Start-Process 'Docker Desktop Installer.exe' -Wait install
start /w "" "Docker Desktop Installer.exe" install

# If you use Scoop command line installer
scoop install docker kubectl go
# Alternatively, if you use Chocolatey as package manager
choco install docker-desktop kubernetes-cli golang

go install sigs.k8s.io/kind@latest
wget https://raw.githubusercontent.com/nekomeowww/ollama-operator/main/hack/kind-config.yaml
kind create cluster --config kind-config.yaml
shell
# refer to Install Docker Engine on Debian | Docker Docs https://docs.docker.com/engine/install/debian/
# and Install and Set Up kubectl on Linux | Kubernetes https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/
  1. Install operator.
shell
kubectl apply -f https://raw.githubusercontent.com/nekomeowww/ollama-operator/main/dist/install.yaml
  1. Wait for the operator to be ready:
shell
kubectl wait --for=jsonpath='{.status.readyReplicas}'=1 deployment/ollama-operator-controller-manager -n ollama-operator-system

Deploy the model

There are two major ways to get started with the Ollama Operator:

  1. kollama provides a simple way to deploy the Ollama model CRD to your Kubernetes cluster.
  2. General Kubernetes CRD is available for advanced users who want to customize the Ollama model CRD.

Different ways provides different levels of customization and flexibility. Choose the one that best fits your needs.

Contributors

The avatar of contributor named as Neko Ayaka Neko Ayaka

Changelog