Skip to content

快速上手

安装 Ollama Operator

没有现成的 Kubernetes 集群吗?

运行以下命令以在您的本地机器上安装 Docker 和 kind 并创建一个 Kubernetes 集群:

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
powershell
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. 安装 Operator.
shell
kubectl apply -f https://raw.githubusercontent.com/nekomeowww/ollama-operator/main/dist/install.yaml
  1. 等待 Operator 就绪:
shell
kubectl wait --for=jsonpath='{.status.readyReplicas}'=1 deployment/ollama-operator-controller-manager -n ollama-operator-system

开始使用 Ollama Operator 主要有两种方法:

  1. kollama 提供了一种简单的方式将 Ollama 模型 CRD 部署到您的 Kubernetes 集群中。
  2. 通用的 Kubernetes CRD 适用于希望自定义 Ollama 模型 CRD 的高级用户。

不同的方式提供了不同的定制和灵活性。选择最适合您需求的方式。

贡献者

The avatar of contributor named as Neko Ayaka Neko Ayaka

页面历史