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