quicksilver 3c3975b5ef
Add Milvus offline installation README (#7026)
Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>
2021-08-10 11:41:27 +08:00

2.0 KiB

Milvus offline installation

Manually downloading Docker images

Your Milvus installation may fail when images are not properly loaded from public Docker registries. To pull all images and save them into a directory that can be moved to the target host and loaded manually, perform the following procedure:

  1. Save Milvus manifest and Docker images

If you install your Milvus with the docker-compose.yml file, use these command:

  • Download Milvus docker-compose.yaml
# Download Milvus standalone docker-compose.yaml
wget https://raw.githubusercontent.com/milvus-io/milvus/master/deployments/docker/standalone/docker-compose.yml -O docker-compose.yml

or

# Download Milvus cluster docker-compose.yaml
wget https://raw.githubusercontent.com/milvus-io/milvus/master/deployments/docker/cluster/docker-compose.yml -O docker-compose.yml
  • Pull and save Docker images
# Pull and save Docker images
pip3 install -r requirements.txt
python3 save_image.py --manifest docker-compose.yml

If you install your Milvus with Helm, use these command:

  • Update Helm repo
helm repo add milvus https://milvus-io.github.io/milvus-helm/
helm repo update
  • Get Kubernetes manifest of Milvus standalone
# Get Kubernetes manifest of Milvus standalone
helm template my-release milvus/milvus > milvus_manifest.yaml

or

# Get Kubernetes manifest of Milvus cluster
helm template --set cluster.enabled=true my-release milvus/milvus > milvus_manifest.yaml
  • Pull and save Docker images
pip3 install -r requirements.txt
python3 save_image.py --manifest milvus_manifest.yaml

The Docker images will be stored under images directory.

  1. Enter the following command to load the Docker images:
for image in $(find images/ -type f -name "*.tar.gz") ; do gunzip -c $image | docker load; done 

Install Milvus

  • Install Milvus with Docker Compose
docker-compose -f docker-compose.yaml up -d
  • Install Milvus on Kubernetes
kubectl apply -f milvus_manifest.yaml