[skip ci]Add standalone pod kill chaos for script (#11270)

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
pull/11287/head
zhuwenxing 2021-11-05 09:09:39 +08:00 committed by GitHub
parent c05ed4c365
commit 65e789472a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 3 deletions

View File

@ -18,8 +18,8 @@ ns=${2:-"chaos-testing"}
# switch namespace
kubectl config set-context --current --namespace=${ns}
pod="proxy"
chaos_type="pod_failure"
pod="standalone"
chaos_type="pod_kill"
release="milvus-chaos"
ns="chaos-testing"
@ -28,8 +28,17 @@ pushd ./scripts
echo "uninstall milvus if exist"
bash uninstall_milvus.sh ${release} ${ns}|| true
echo "install milvus"
bash install_milvus.sh ${release} ${ns}
if [ ${pod} != "standalone" ];
then
echo "insatll cluster"
bash install_milvus.sh ${release} ${ns}
fi
if [ ${pod} == "standalone" ];
then
echo "install standalone"
helm install --wait --timeout 360s ${release} milvus/milvus --set service.type=NodePort -f ../standalone-values.yaml -n=${ns}
fi
# if chaos_type is pod_failure, update replicas
if [ "$chaos_type" == "pod_failure" ];
then

View File

@ -0,0 +1,13 @@
cluster:
enabled: false
image:
all:
repository: milvusdb/milvus-dev
tag: master-latest
pullPolicy: IfNotPresent
etcd:
replicaCount: 1
minio:
mode: standalone
pulsar:
enabled: false