mirror of https://github.com/milvus-io/milvus.git
Update milvs helm repo for ci (#28042)
Signed-off-by: Bennu-Li <yunmei.li@zilliz.com>pull/28083/head
parent
3b8fbbd91d
commit
8c71e2bd64
|
@ -289,7 +289,7 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: tests/python_client/deploy
|
working-directory: tests/python_client/deploy
|
||||||
run: |
|
run: |
|
||||||
helm repo add milvus https://milvus-io.github.io/milvus-helm
|
helm repo add milvus https://zilliztech.github.io/milvus-helm
|
||||||
helm repo update
|
helm repo update
|
||||||
|
|
||||||
# if the task is reinstall, install milvus with latest image in repo milvusdb/milvus
|
# if the task is reinstall, install milvus with latest image in repo milvusdb/milvus
|
||||||
|
|
|
@ -64,7 +64,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
echo "latest tag:"
|
echo "latest tag:"
|
||||||
bash ../../../scripts/docker_image_find_tag.sh -n milvusdb/milvus -t master-latest -f master- -F -L -q
|
bash ../../../scripts/docker_image_find_tag.sh -n milvusdb/milvus -t master-latest -f master- -F -L -q
|
||||||
helm repo add milvus https://milvus-io.github.io/milvus-helm
|
helm repo add milvus https://zilliztech.github.io/milvus-helm
|
||||||
helm repo update
|
helm repo update
|
||||||
if [[ ${{ matrix.pod }} != *"standalone"* ]]; then helm install --wait --timeout 720s ${{ env.RELEASE }} milvus/milvus -f cluster-values.yaml -n=chaos-testing; fi
|
if [[ ${{ matrix.pod }} != *"standalone"* ]]; then helm install --wait --timeout 720s ${{ env.RELEASE }} milvus/milvus -f cluster-values.yaml -n=chaos-testing; fi
|
||||||
if [[ ${{ matrix.pod }} == *"standalone"* ]]; then helm install --wait --timeout 720s ${{ env.RELEASE }} milvus/milvus -f standalone-values.yaml -n=chaos-testing; fi
|
if [[ ${{ matrix.pod }} == *"standalone"* ]]; then helm install --wait --timeout 720s ${{ env.RELEASE }} milvus/milvus -f standalone-values.yaml -n=chaos-testing; fi
|
||||||
|
|
|
@ -64,7 +64,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
echo "latest tag:"
|
echo "latest tag:"
|
||||||
bash ../../../scripts/docker_image_find_tag.sh -n milvusdb/milvus -t master-latest -f master- -F -L -q
|
bash ../../../scripts/docker_image_find_tag.sh -n milvusdb/milvus -t master-latest -f master- -F -L -q
|
||||||
helm repo add milvus https://milvus-io.github.io/milvus-helm
|
helm repo add milvus https://zilliztech.github.io/milvus-helm
|
||||||
helm repo update
|
helm repo update
|
||||||
if [[ ${{ matrix.pod }} != *"standalone"* ]]; then helm install --wait --timeout 720s ${{ env.RELEASE }} milvus/milvus -f cluster-values.yaml -n=chaos-testing; fi
|
if [[ ${{ matrix.pod }} != *"standalone"* ]]; then helm install --wait --timeout 720s ${{ env.RELEASE }} milvus/milvus -f cluster-values.yaml -n=chaos-testing; fi
|
||||||
if [[ ${{ matrix.pod }} == *"standalone"* ]]; then helm install --wait --timeout 720s ${{ env.RELEASE }} milvus/milvus -f standalone-values.yaml -n=chaos-testing; fi
|
if [[ ${{ matrix.pod }} == *"standalone"* ]]; then helm install --wait --timeout 720s ${{ env.RELEASE }} milvus/milvus -f standalone-values.yaml -n=chaos-testing; fi
|
||||||
|
|
|
@ -64,7 +64,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
echo "latest tag:"
|
echo "latest tag:"
|
||||||
bash ../../../scripts/docker_image_find_tag.sh -n milvusdb/milvus -t master-latest -f master- -F -L -q
|
bash ../../../scripts/docker_image_find_tag.sh -n milvusdb/milvus -t master-latest -f master- -F -L -q
|
||||||
helm repo add milvus https://milvus-io.github.io/milvus-helm
|
helm repo add milvus https://zilliztech.github.io/milvus-helm
|
||||||
helm repo update
|
helm repo update
|
||||||
if [[ ${{ matrix.pod }} != *"standalone"* ]]; then helm install --wait --timeout 720s ${{ env.RELEASE }} milvus/milvus -f cluster-values.yaml -n=chaos-testing; fi
|
if [[ ${{ matrix.pod }} != *"standalone"* ]]; then helm install --wait --timeout 720s ${{ env.RELEASE }} milvus/milvus -f cluster-values.yaml -n=chaos-testing; fi
|
||||||
if [[ ${{ matrix.pod }} == *"standalone"* ]]; then helm install --wait --timeout 720s ${{ env.RELEASE }} milvus/milvus -f standalone-values.yaml -n=chaos-testing; fi
|
if [[ ${{ matrix.pod }} == *"standalone"* ]]; then helm install --wait --timeout 720s ${{ env.RELEASE }} milvus/milvus -f standalone-values.yaml -n=chaos-testing; fi
|
||||||
|
|
|
@ -55,7 +55,7 @@ jobs:
|
||||||
- name: Deploy Milvus
|
- name: Deploy Milvus
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
helm repo add milvus https://milvus-io.github.io/milvus-helm
|
helm repo add milvus https://zilliztech.github.io/milvus-helm
|
||||||
helm repo update
|
helm repo update
|
||||||
# install milvus with latest image
|
# install milvus with latest image
|
||||||
helm install --wait --timeout 360s chaos-testing milvus/milvus --set cluster.enabled=true --set image.all.repository=milvusdb/milvus --set image.all.tag=master-latest -n=chaos-testing
|
helm install --wait --timeout 360s chaos-testing milvus/milvus --set cluster.enabled=true --set image.all.repository=milvusdb/milvus --set image.all.tag=master-latest -n=chaos-testing
|
||||||
|
|
|
@ -82,7 +82,7 @@ jobs:
|
||||||
echo "latest tag:"
|
echo "latest tag:"
|
||||||
bash ../../../scripts/docker_image_find_tag.sh -n milvusdb/milvus -t master-latest -f master- -F -L -q
|
bash ../../../scripts/docker_image_find_tag.sh -n milvusdb/milvus -t master-latest -f master- -F -L -q
|
||||||
declare -A pod_map=( ["querynode"]="queryNode" ["indexnode"]="indexNode" ["datanode"]="dataNode" ["proxy"]="proxy")
|
declare -A pod_map=( ["querynode"]="queryNode" ["indexnode"]="indexNode" ["datanode"]="dataNode" ["proxy"]="proxy")
|
||||||
helm repo add milvus https://milvus-io.github.io/milvus-helm
|
helm repo add milvus https://zilliztech.github.io/milvus-helm
|
||||||
helm repo update
|
helm repo update
|
||||||
helm install --wait --timeout 720s ${{ env.RELEASE }} milvus/milvus --set image.all.repository=${{ env.IMAGE_REPO }} --set image.all.tag=${{ env.IMAGE_TAG }} --set ${pod_map[${{ matrix.pod }}]}.replicas=2 -f cluster-values.yaml -n=chaos-testing
|
helm install --wait --timeout 720s ${{ env.RELEASE }} milvus/milvus --set image.all.repository=${{ env.IMAGE_REPO }} --set image.all.tag=${{ env.IMAGE_TAG }} --set ${pod_map[${{ matrix.pod }}]}.replicas=2 -f cluster-values.yaml -n=chaos-testing
|
||||||
kubectl get pods -n chaos-testing
|
kubectl get pods -n chaos-testing
|
||||||
|
|
|
@ -81,7 +81,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
echo "latest tag:"
|
echo "latest tag:"
|
||||||
bash ../../../scripts/docker_image_find_tag.sh -n milvusdb/milvus -t master-latest -f master- -F -L -q
|
bash ../../../scripts/docker_image_find_tag.sh -n milvusdb/milvus -t master-latest -f master- -F -L -q
|
||||||
helm repo add milvus https://milvus-io.github.io/milvus-helm
|
helm repo add milvus https://zilliztech.github.io/milvus-helm
|
||||||
helm repo update
|
helm repo update
|
||||||
if [[ ${{ matrix.pod }} != *"standalone"* ]]; then helm install --wait --timeout 720s ${{ env.RELEASE }} milvus/milvus --set pulsar.enabled=false --set kafka.enabled=true --set image.all.repository=${{ env.IMAGE_REPO }} --set image.all.tag=${{ env.IMAGE_TAG }} -f cluster-values.yaml -n=chaos-testing; fi
|
if [[ ${{ matrix.pod }} != *"standalone"* ]]; then helm install --wait --timeout 720s ${{ env.RELEASE }} milvus/milvus --set pulsar.enabled=false --set kafka.enabled=true --set image.all.repository=${{ env.IMAGE_REPO }} --set image.all.tag=${{ env.IMAGE_TAG }} -f cluster-values.yaml -n=chaos-testing; fi
|
||||||
if [[ ${{ matrix.pod }} == *"standalone"* ]]; then helm install --wait --timeout 720s ${{ env.RELEASE }} milvus/milvus --set pulsar.enabled=false --set kafka.enabled=true --set image.all.repository=${{ env.IMAGE_REPO }} --set image.all.tag=${{ env.IMAGE_TAG }} -f standalone-values.yaml -n=chaos-testing; fi
|
if [[ ${{ matrix.pod }} == *"standalone"* ]]; then helm install --wait --timeout 720s ${{ env.RELEASE }} milvus/milvus --set pulsar.enabled=false --set kafka.enabled=true --set image.all.repository=${{ env.IMAGE_REPO }} --set image.all.tag=${{ env.IMAGE_TAG }} -f standalone-values.yaml -n=chaos-testing; fi
|
||||||
|
|
|
@ -81,7 +81,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
echo "latest tag:"
|
echo "latest tag:"
|
||||||
bash ../../../scripts/docker_image_find_tag.sh -n milvusdb/milvus -t master-latest -f master- -F -L -q
|
bash ../../../scripts/docker_image_find_tag.sh -n milvusdb/milvus -t master-latest -f master- -F -L -q
|
||||||
helm repo add milvus https://milvus-io.github.io/milvus-helm
|
helm repo add milvus https://zilliztech.github.io/milvus-helm
|
||||||
helm repo update
|
helm repo update
|
||||||
if [[ ${{ matrix.pod }} != *"standalone"* ]]; then helm install --wait --timeout 720s ${{ env.RELEASE }} milvus/milvus --set image.all.repository=${{ env.IMAGE_REPO }} --set image.all.tag=${{ env.IMAGE_TAG }} -f cluster-values.yaml -n=chaos-testing; fi
|
if [[ ${{ matrix.pod }} != *"standalone"* ]]; then helm install --wait --timeout 720s ${{ env.RELEASE }} milvus/milvus --set image.all.repository=${{ env.IMAGE_REPO }} --set image.all.tag=${{ env.IMAGE_TAG }} -f cluster-values.yaml -n=chaos-testing; fi
|
||||||
if [[ ${{ matrix.pod }} == *"standalone"* ]]; then helm install --wait --timeout 720s ${{ env.RELEASE }} milvus/milvus --set image.all.repository=${{ env.IMAGE_REPO }} --set image.all.tag=${{ env.IMAGE_TAG }} -f standalone-values.yaml -n=chaos-testing; fi
|
if [[ ${{ matrix.pod }} == *"standalone"* ]]; then helm install --wait --timeout 720s ${{ env.RELEASE }} milvus/milvus --set image.all.repository=${{ env.IMAGE_REPO }} --set image.all.tag=${{ env.IMAGE_TAG }} -f standalone-values.yaml -n=chaos-testing; fi
|
||||||
|
|
|
@ -138,7 +138,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
sh "echo ${image_tag_modified}"
|
sh "echo ${image_tag_modified}"
|
||||||
sh "echo ${params.chaos_type}"
|
sh "echo ${params.chaos_type}"
|
||||||
sh "helm repo add milvus https://milvus-io.github.io/milvus-helm"
|
sh "helm repo add milvus https://zilliztech.github.io/milvus-helm"
|
||||||
sh "helm repo update"
|
sh "helm repo update"
|
||||||
def pod_name = "${params.pod_name}"
|
def pod_name = "${params.pod_name}"
|
||||||
if (pod_name.contains("standalone")){
|
if (pod_name.contains("standalone")){
|
||||||
|
|
|
@ -140,7 +140,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
sh "echo ${image_tag_modified}"
|
sh "echo ${image_tag_modified}"
|
||||||
sh "echo ${params.chaos_type}"
|
sh "echo ${params.chaos_type}"
|
||||||
sh "helm repo add milvus https://milvus-io.github.io/milvus-helm"
|
sh "helm repo add milvus https://zilliztech.github.io/milvus-helm"
|
||||||
sh "helm repo update"
|
sh "helm repo update"
|
||||||
def pod_name = "${params.pod_name}"
|
def pod_name = "${params.pod_name}"
|
||||||
if (pod_name.contains("standalone")){
|
if (pod_name.contains("standalone")){
|
||||||
|
|
|
@ -182,7 +182,7 @@ pipeline {
|
||||||
old_image_repository_modified = "${params.old_image_repository}"
|
old_image_repository_modified = "${params.old_image_repository}"
|
||||||
}
|
}
|
||||||
|
|
||||||
sh "helm repo add milvus https://milvus-io.github.io/milvus-helm"
|
sh "helm repo add milvus https://zilliztech.github.io/milvus-helm"
|
||||||
sh "helm repo update"
|
sh "helm repo update"
|
||||||
if ("${params.deploy_task}" == "upgrade"){
|
if ("${params.deploy_task}" == "upgrade"){
|
||||||
if ("${params.milvus_mode}" == "standalone") {
|
if ("${params.milvus_mode}" == "standalone") {
|
||||||
|
|
|
@ -194,7 +194,7 @@ pipeline {
|
||||||
old_image_repository_modified = "${params.old_image_repository}"
|
old_image_repository_modified = "${params.old_image_repository}"
|
||||||
}
|
}
|
||||||
|
|
||||||
sh "helm repo add milvus https://milvus-io.github.io/milvus-helm"
|
sh "helm repo add milvus https://zilliztech.github.io/milvus-helm"
|
||||||
sh "helm repo update"
|
sh "helm repo update"
|
||||||
if ("${params.milvus_mode}" == "standalone") {
|
if ("${params.milvus_mode}" == "standalone") {
|
||||||
sh "helm install --wait --timeout 720s ${env.RELEASE_NAME} milvus/milvus --set image.all.repository=${old_image_repository_modified} --set image.all.tag=${old_image_tag_modified} -f standalone-values.yaml;"
|
sh "helm install --wait --timeout 720s ${env.RELEASE_NAME} milvus/milvus --set image.all.repository=${old_image_repository_modified} --set image.all.tag=${old_image_tag_modified} -f standalone-values.yaml;"
|
||||||
|
|
|
@ -4,7 +4,7 @@ int total_timeout_minutes = 60 * 5
|
||||||
int e2e_timeout_seconds = 120 * 60
|
int e2e_timeout_seconds = 120 * 60
|
||||||
def imageTag=''
|
def imageTag=''
|
||||||
int case_timeout_seconds = 20 * 60
|
int case_timeout_seconds = 20 * 60
|
||||||
def chart_version='4.0.6'
|
def chart_version='4.1.8'
|
||||||
pipeline {
|
pipeline {
|
||||||
options {
|
options {
|
||||||
timestamps()
|
timestamps()
|
||||||
|
|
|
@ -4,7 +4,7 @@ int total_timeout_minutes = 60 * 5
|
||||||
int e2e_timeout_seconds = 70 * 60
|
int e2e_timeout_seconds = 70 * 60
|
||||||
def imageTag=''
|
def imageTag=''
|
||||||
int case_timeout_seconds = 10 * 60
|
int case_timeout_seconds = 10 * 60
|
||||||
def chart_version='4.0.6'
|
def chart_version='4.1.8'
|
||||||
pipeline {
|
pipeline {
|
||||||
options {
|
options {
|
||||||
timestamps()
|
timestamps()
|
||||||
|
|
|
@ -36,7 +36,7 @@ $ python3 save_image.py --manifest docker-compose.yml
|
||||||
#### If you install Milvus with **Helm**, use these commands:
|
#### If you install Milvus with **Helm**, use these commands:
|
||||||
#### 1. Update Helm repo
|
#### 1. Update Helm repo
|
||||||
```shell
|
```shell
|
||||||
$ helm repo add milvus https://milvus-io.github.io/milvus-helm/
|
$ helm repo add milvus https://zilliztech.github.io/milvus-helm/
|
||||||
$ helm repo update
|
$ helm repo update
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ milvus_mode=${2:-"cluster"}
|
||||||
ns=${3:-"chaos-testing"}
|
ns=${3:-"chaos-testing"}
|
||||||
bash uninstall_milvus.sh ${release} ${ns}|| true
|
bash uninstall_milvus.sh ${release} ${ns}|| true
|
||||||
|
|
||||||
helm repo add milvus https://milvus-io.github.io/milvus-helm/
|
helm repo add milvus https://zilliztech.github.io/milvus-helm/
|
||||||
helm repo update
|
helm repo update
|
||||||
if [[ ${milvus_mode} == "cluster" ]];
|
if [[ ${milvus_mode} == "cluster" ]];
|
||||||
then
|
then
|
||||||
|
|
|
@ -4,7 +4,7 @@ milvus_mode=${2:-"cluster"}
|
||||||
ns=${3:-"chaos-testing"}
|
ns=${3:-"chaos-testing"}
|
||||||
bash uninstall_milvus.sh ${release} ${ns}|| true
|
bash uninstall_milvus.sh ${release} ${ns}|| true
|
||||||
|
|
||||||
helm repo add milvus https://milvus-io.github.io/milvus-helm/
|
helm repo add milvus https://zilliztech.github.io/milvus-helm/
|
||||||
helm repo update
|
helm repo update
|
||||||
if [[ ${milvus_mode} == "cluster" ]];
|
if [[ ${milvus_mode} == "cluster" ]];
|
||||||
then
|
then
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
|
|
||||||
MILVUS_HELM_REPO="${MILVUS_HELM_REPO:-https://milvus-io.github.io/milvus-helm/}"
|
MILVUS_HELM_REPO="${MILVUS_HELM_REPO:-https://zilliztech.github.io/milvus-helm/}"
|
||||||
MILVUS_HELM_RELEASE_NAME="${MILVUS_HELM_RELEASE_NAME:-milvus-testing}"
|
MILVUS_HELM_RELEASE_NAME="${MILVUS_HELM_RELEASE_NAME:-milvus-testing}"
|
||||||
MILVUS_CLUSTER_ENABLED="${MILVUS_CLUSTER_ENABLED:-false}"
|
MILVUS_CLUSTER_ENABLED="${MILVUS_CLUSTER_ENABLED:-false}"
|
||||||
MILVUS_IMAGE_REPO="${MILVUS_IMAGE_REPO:-milvusdb/milvus}"
|
MILVUS_IMAGE_REPO="${MILVUS_IMAGE_REPO:-milvusdb/milvus}"
|
||||||
|
@ -56,9 +56,9 @@ fi
|
||||||
|
|
||||||
|
|
||||||
# Use helm repo to install milvus charts
|
# Use helm repo to install milvus charts
|
||||||
helm repo add milvus ${MILVUS_HELM_REPO}
|
helm repo add zilliztech ${MILVUS_HELM_REPO}
|
||||||
helm repo update
|
helm repo update
|
||||||
MILVUS_HELM_CHART_PATH="milvus/milvus"
|
MILVUS_HELM_CHART_PATH="zilliztech/milvus"
|
||||||
|
|
||||||
# Create namespace when it does not exist
|
# Create namespace when it does not exist
|
||||||
kubectl create namespace "${MILVUS_HELM_NAMESPACE}" > /dev/null 2>&1 || true
|
kubectl create namespace "${MILVUS_HELM_NAMESPACE}" > /dev/null 2>&1 || true
|
||||||
|
|
Loading…
Reference in New Issue