milvus-logo
Star
0
Forks
0
快速开始

Install Milvus Offline

Milvus Docs 需要你的帮助

本文档暂时没有中文版本,欢迎你成为社区贡献者,协助中文技术文档的翻译。
你可以通过页面右边的 编辑 按钮直接贡献你的翻译。更多详情,参考 贡献指南。如需帮助,你可以 提交 GitHub Issue

本篇文档将展示如何在离线环境中部署 Milvus。相关文件可在 GitHub 下载。

Download files and images

To install Milvus offline, you need to pull and save all images in an online environment first, and then transfer them to the target host and load them manually.

  1. Add and update Milvus Helm repository locally.
helm repo add milvus https://milvus-io.github.io/milvus-helm/
helm repo update
  1. Get a Kubernetes manifest.
  • For Milvus standalone:
helm template my-release --set cluster.enabled=false --set etcd.replicaCount=1 --set minio.mode=standalone --set pulsar.enabled=false milvus/milvus > milvus_manifest.yaml
  • For Milvus cluster:
helm template my-release milvus/milvus > milvus_manifest.yaml

If you want to change multiple configurations, you can download a value.yaml file, specify configurations in it, and generate a manifest based on it.

wget https://raw.githubusercontent.com/milvus-io/milvus-helm/master/charts/milvus/values.yaml
helm template -f values.yaml my-release milvus/milvus > milvus_manifest.yaml
  1. Download requirement and script files.
$ wget https://raw.githubusercontent.com/milvus-io/milvus/master/deployments/offline/requirements.txt
$ wget https://raw.githubusercontent.com/milvus-io/milvus/master/deployments/offline/save_image.py
  1. Pull and save images.
pip3 install -r requirements.txt
python3 save_image.py --manifest milvus_manifest.yaml
The images are stored in the /images folder.
  1. Load the images.
cd images/for image in $(find . -type f -name "*.tar.gz") ; do gunzip -c $image | docker load; done

Install Milvus offline

Having transferred the images to the target host, run the following command to install Milvus offline.

kubectl apply -f milvus_manifest.yaml

Uninstall Milvus

To uninstall Milvus, run the following command.

kubectl delete -f milvus_manifest.yaml
该页面是否对你有帮助?
本页目录