作者 Administrator

更新 install.sh

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