mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-06 17:18:35 +08:00
[skip ci]Fix helm reinstall in github action (#11075)
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
This commit is contained in:
parent
c37f5f1139
commit
1a33987bbe
1
.github/workflows/pod-kill-chaos-test.yaml
vendored
1
.github/workflows/pod-kill-chaos-test.yaml
vendored
@ -107,6 +107,7 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
working-directory: tests/python_client/chaos
|
working-directory: tests/python_client/chaos
|
||||||
run: |
|
run: |
|
||||||
|
kubectl config set-context --current --namespace=chaos-testing
|
||||||
bash scripts/uninstall_milvus.sh
|
bash scripts/uninstall_milvus.sh
|
||||||
helm install --wait --timeout 360s milvus-chaos milvus/milvus -f cluster-values.yaml -n=chaos-testing
|
helm install --wait --timeout 360s milvus-chaos milvus/milvus -f cluster-values.yaml -n=chaos-testing
|
||||||
kubectl get pods -n chaos-testing
|
kubectl get pods -n chaos-testing
|
||||||
|
|||||||
@ -14,6 +14,10 @@ echo "platform: $platform"
|
|||||||
|
|
||||||
# define chaos testing object
|
# define chaos testing object
|
||||||
release=${1:-"milvus-chaos"}
|
release=${1:-"milvus-chaos"}
|
||||||
|
ns=${2:-"chaos-testing"}
|
||||||
|
|
||||||
|
# switch namespace
|
||||||
|
kubectl config set-context --current --namespace=${ns}
|
||||||
pod="proxy"
|
pod="proxy"
|
||||||
chaos_type="pod_failure"
|
chaos_type="pod_failure"
|
||||||
release="milvus-chaos"
|
release="milvus-chaos"
|
||||||
@ -22,9 +26,9 @@ ns="chaos-testing"
|
|||||||
# install milvus cluster for chaos testing
|
# install milvus cluster for chaos testing
|
||||||
pushd ./scripts
|
pushd ./scripts
|
||||||
echo "uninstall milvus if exist"
|
echo "uninstall milvus if exist"
|
||||||
bash uninstall_milvus.sh ${release}|| true
|
bash uninstall_milvus.sh ${release} ${ns}|| true
|
||||||
echo "install milvus"
|
echo "install milvus"
|
||||||
bash install_milvus.sh ${release}
|
bash install_milvus.sh ${release} ${ns}
|
||||||
|
|
||||||
# if chaos_type is pod_failure, update replicas
|
# if chaos_type is pod_failure, update replicas
|
||||||
if [ "$chaos_type" == "pod_failure" ];
|
if [ "$chaos_type" == "pod_failure" ];
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
|
|
||||||
release=${1:-"milvs-chaos"}
|
release=${1:-"milvs-chaos"}
|
||||||
|
ns=${2:-"chaos-testing"}
|
||||||
bash uninstall_milvus.sh ${release} || true
|
bash uninstall_milvus.sh ${release} ${ns}|| true
|
||||||
|
|
||||||
helm repo add milvus https://milvus-io.github.io/milvus-helm/
|
helm repo add milvus https://milvus-io.github.io/milvus-helm/
|
||||||
helm repo update
|
helm repo update
|
||||||
helm install --wait --timeout 360s ${release} milvus/milvus --set service.type=NodePort -f ../cluster-values.yaml -n=chaos-testing
|
helm install --wait --timeout 360s ${release} milvus/milvus --set service.type=NodePort -f ../cluster-values.yaml -n=${ns}
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
release=${1:-"milvus-chaos"}
|
release=${1:-"milvus-chaos"}
|
||||||
helm uninstall ${release}
|
ns=${2:-"chaos-testing"}
|
||||||
kubectl delete pvc -l release=${release}
|
helm uninstall ${release} -n=${ns}
|
||||||
kubectl delete pvc -l app.kubernetes.io/instance=${release}
|
kubectl delete pvc -l release=${release} -n=${ns}
|
||||||
|
kubectl delete pvc -l app.kubernetes.io/instance=${release} -n=${ns}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user