作者 Administrator

更新 install.sh

... ... @@ -2,7 +2,7 @@
export PATH=/root/local/bin:$PATH
kubectl -n mmm-suplus-dev get pods | grep -q partnermg
if [ "$?" == "1" ];then
kubectl create -f /tmp/dev/partnermgmg/partnermg.yaml --record
kubectl create -f /tmp/dev/partnermgmg/partner.yaml --record
kubectl -n mmm-suplus-dev get svc | grep -q partnermg
if [ "$?" == "0" ];then
echo "partner service install success!"
... ... @@ -16,7 +16,7 @@ if [ "$?" == "1" ];then
echo "partner deployment install fail!"
fi
else
kubectl delete -f /tmp/dev/partnermg/partnermg.yaml
kubectl delete -f /tmp/dev/partnermg/partner.yaml
kubectl -n mmm-suplus-dev get svc | grep -q partnermg
while [ "$?" == "0" ]
do
... ... @@ -27,7 +27,7 @@ else
do
kubectl -n mmm-suplus-dev get pods | grep -q partnermg
done
kubectl create -f /tmp/dev/partnermg/partnermg.yaml --record
kubectl create -f /tmp/dev/partnermg/partner.yaml --record
kubectl -n mmm-suplus-dev get svc | grep -q partnermg
if [ "$?" == "0" ];then
echo "partner service update success!"
... ...