作者 Administrator

更新 install.sh

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