The installation guide documented here help you deploy Milvus operator stack with helm, which is the recommended way.
Kubernetescluster (v1.19+) is running.Helmis installed.cert-manager(optional) (v1.0+) is installed.
For quick start, install with one line command:
helm install milvus-operator \
-n milvus-operator --create-namespace \
https://github.com/milvus-io/milvus-operator/releases/download/v0.6.8/milvus-operator-0.6.8.tgzIf you already have cert-manager v1.0+ installed which is not in its default configuration, you may encounter some error with the check of cert-manager installation. you can install with special options to disable the check:
helm install milvus-operator \
-n milvus-operator --create-namespace \
https://github.com/milvus-io/milvus-operator/releases/download/v0.6.8/milvus-operator-0.6.8.tgz \
--set checker.disableCertManagerCheck=true
use helm commands to check installation:
# list installations
helm -n milvus-operator list
# get values configuratins
helm -n milvus-operator get values milvus-operatoruse helm commands to upgrade earlier milvus-operator to current version:
helm upgrade -n milvus-operator milvus-operator --reuse-values \
https://github.com/milvus-io/milvus-operator/releases/download/v0.6.8/milvus-operator-0.6.8.tgzDelete the milvus operator stack by helm
helm uninstall milvus-operator -n milvus-operatorIf you don't want to use helm you can also install with kubectl and raw manifests.
Kubernetescluster (v1.19+) is running.cert-manager(optional) (v1.0+) is installed in cert-manager namespace with default config.kubectlwith a proper version(v1.19+) is installed.git(optional) is installed.
Directly apply the deployment manifest to your Kubernetes cluster:
kubectl apply -f https://raw.githubusercontent.com/milvus-io/milvus-operator/main/deploy/manifests/deployment.yamlOr install the milvus operator stack by using makefile
git clone https://github.com/milvus-io/milvus-operator.git
# Checkout to the specified branch or the specified tag.
# To branch: git checkout <branch-name> e.g.: git checkout release-0.1.0
make deployNOTES: Here we use the deployment manifest in the
mainbranch as an example, for deploying the released versions, you can get the deployment manifest in the GitHub release page or find it in the corresponding code branch such asv0.1.0.
Check the installed operators:
kubectl get pods -n milvus-operatorOutput:
NAME READY STATUS RESTARTS AGE
milvus-operator-698fc7dc8d-8f52d 1/1 Running 0 65s
Delete the milvus operator stack by the deployment manifest:
kubectl delete -f https://raw.githubusercontent.com/milvus-io/milvus-operator/main/deploy/manifests/deployment.yamlOr delete the milvus operator stack by using makefile:
make undeployIf the Milvus operator is successfully installed, you can follow the guide shown to deploy your Milvus cluster to your Kubernetes and try it. The examples can be found in https://github.com/milvus-io/milvus-operator/tree/main/config/samples
quick start with kubectl apply -f https://raw.githubusercontent.com/milvus-io/milvus-operator/main/config/samples/milvus_minimum.yaml
For local development purpose, check Kind installation.