mirror of https://github.com/milvus-io/milvus.git
parent
db09b93488
commit
33821e1408
|
@ -10,43 +10,43 @@ Milvus installation may fail when images are not properly loaded from public Doc
|
|||
|
||||
#### 1. Download Milvus standalone docker-compose.yml
|
||||
```shell
|
||||
wget https://raw.githubusercontent.com/milvus-io/milvus/master/deployments/docker/standalone/docker-compose.yml -O docker-compose.yml
|
||||
$ 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.yml
|
||||
|
||||
```shell
|
||||
wget https://raw.githubusercontent.com/milvus-io/milvus/master/deployments/docker/cluster/docker-compose.yml -O docker-compose.yml
|
||||
$ wget https://raw.githubusercontent.com/milvus-io/milvus/master/deployments/docker/cluster/docker-compose.yml -O docker-compose.yml
|
||||
```
|
||||
|
||||
#### 2. Pull and save Docker images
|
||||
```shell
|
||||
pip3 install -r requirements.txt
|
||||
python3 save_image.py --manifest docker-compose.yml
|
||||
$ pip3 install -r requirements.txt
|
||||
$ python3 save_image.py --manifest docker-compose.yml
|
||||
```
|
||||
|
||||
#### If you install Milvus with **Helm**, use these command:
|
||||
#### 1. Update Helm repo
|
||||
```shell
|
||||
helm repo add milvus https://milvus-io.github.io/milvus-helm/
|
||||
helm repo update
|
||||
$ helm repo add milvus https://milvus-io.github.io/milvus-helm/
|
||||
$ helm repo update
|
||||
```
|
||||
|
||||
#### 2. Get Kubernetes manifests of Milvus standalone
|
||||
```shell
|
||||
helm template my-release milvus/milvus > milvus_manifest.yaml
|
||||
$ helm template my-release milvus/milvus > milvus_manifest.yaml
|
||||
```
|
||||
|
||||
or get Kubernetes manifests of Milvus cluster
|
||||
|
||||
```shell
|
||||
helm template --set cluster.enabled=true my-release milvus/milvus > milvus_manifest.yaml
|
||||
$ helm template --set cluster.enabled=true my-release milvus/milvus > milvus_manifest.yaml
|
||||
```
|
||||
|
||||
#### 3. Pull and save Docker images
|
||||
```shell
|
||||
pip3 install -r requirements.txt
|
||||
python3 save_image.py --manifest milvus_manifest.yaml
|
||||
$ pip3 install -r requirements.txt
|
||||
$ python3 save_image.py --manifest milvus_manifest.yaml
|
||||
```
|
||||
|
||||
The Docker images will be stored under **images** directory.
|
||||
|
@ -55,8 +55,8 @@ The Docker images will be stored under **images** directory.
|
|||
Enter the following command to load the Docker images:
|
||||
|
||||
```shell
|
||||
cd images/
|
||||
for image in $(find . -type f -name "*.tar.gz") ; do gunzip -c $image | docker load; done
|
||||
$ cd images/
|
||||
$ for image in $(find . -type f -name "*.tar.gz") ; do gunzip -c $image | docker load; done
|
||||
```
|
||||
|
||||
## Install Milvus
|
||||
|
@ -64,13 +64,13 @@ for image in $(find . -type f -name "*.tar.gz") ; do gunzip -c $image | docker l
|
|||
### With Docker Compose
|
||||
|
||||
```shell
|
||||
docker-compose -f docker-compose.yml up -d
|
||||
$ docker-compose -f docker-compose.yml up -d
|
||||
```
|
||||
|
||||
### On Kubernetes
|
||||
|
||||
```shell
|
||||
kubectl apply -f milvus_manifest.yaml
|
||||
$ kubectl apply -f milvus_manifest.yaml
|
||||
```
|
||||
|
||||
## Uninstall Milvus
|
||||
|
@ -78,11 +78,11 @@ kubectl apply -f milvus_manifest.yaml
|
|||
### With Docker Compose
|
||||
|
||||
```shell
|
||||
docker-compose -f docker-compose.yml down
|
||||
$ docker-compose -f docker-compose.yml down
|
||||
```
|
||||
|
||||
### On Kubernetes
|
||||
|
||||
```shell
|
||||
kubectl delete -f milvus_manifest.yaml
|
||||
$ kubectl delete -f milvus_manifest.yaml
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue