|
|
#!/bin/bash
|
|
|
export PATH=/root/local/bin:$PATH
|
|
|
kubectl -n mmm-suplus-dev get pods | grep -q allied-creation-cooperation
|
|
|
kubectl -n mmm-suplus-preonline get pods | grep -q allied-creation-cooperation
|
|
|
if [ "$?" == "1" ];then
|
|
|
kubectl create -f /tmp/dev/allied-creation-cooperation/allied-creation-cooperation.yaml --record
|
|
|
kubectl -n mmm-suplus-dev get svc | grep -q allied-creation-cooperation
|
|
|
kubectl create -f /tmp/preonline/allied-creation-cooperation/allied-creation-cooperation.yaml --record
|
|
|
kubectl -n mmm-suplus-preonline get svc | grep -q allied-creation-cooperation
|
|
|
if [ "$?" == "0" ];then
|
|
|
echo "allied-creation-cooperation service install success!"
|
|
|
else
|
|
|
echo "allied-creation-cooperation service install fail!"
|
|
|
fi
|
|
|
kubectl -n mmm-suplus-dev get pods | grep -q allied-creation-cooperation
|
|
|
kubectl -n mmm-suplus-preonline get pods | grep -q allied-creation-cooperation
|
|
|
if [ "$?" == "0" ];then
|
|
|
echo "allied-creation-cooperation deployment install success!"
|
|
|
else
|
|
|
echo "allied-creation-cooperation deployment install fail!"
|
|
|
fi
|
|
|
else
|
|
|
kubectl delete -f /tmp/dev/allied-creation-cooperation/allied-creation-cooperation.yaml
|
|
|
kubectl -n mmm-suplus-dev get svc | grep -q allied-creation-cooperation
|
|
|
kubectl delete -f /tmp/preonline/allied-creation-cooperation/allied-creation-cooperation.yaml
|
|
|
kubectl -n mmm-suplus-preonline get svc | grep -q allied-creation-cooperation
|
|
|
while [ "$?" == "0" ]
|
|
|
do
|
|
|
kubectl -n mmm-suplus-dev get svc | grep -q allied-creation-cooperation
|
|
|
kubectl -n mmm-suplus-preonline get svc | grep -q allied-creation-cooperation
|
|
|
done
|
|
|
kubectl -n mmm-suplus-dev get pods | grep -q allied-creation-cooperation
|
|
|
kubectl -n mmm-suplus-preonline get pods | grep -q allied-creation-cooperation
|
|
|
while [ "$?" == "0" ]
|
|
|
do
|
|
|
kubectl -n mmm-suplus-dev get pods | grep -q allied-creation-cooperation
|
|
|
kubectl -n mmm-suplus-preonline get pods | grep -q allied-creation-cooperation
|
|
|
done
|
|
|
kubectl create -f /tmp/dev/allied-creation-cooperation/allied-creation-cooperation.yaml --record
|
|
|
kubectl -n mmm-suplus-dev get svc | grep -q allied-creation-cooperation
|
|
|
kubectl create -f /tmp/preonline/allied-creation-cooperation/allied-creation-cooperation.yaml --record
|
|
|
kubectl -n mmm-suplus-preonline get svc | grep -q allied-creation-cooperation
|
|
|
if [ "$?" == "0" ];then
|
|
|
echo "allied-creation-cooperation service update success!"
|
|
|
else
|
|
|
echo "allied-creation-cooperation service update fail!"
|
|
|
fi
|
|
|
kubectl -n mmm-suplus-dev get pods | grep -q allied-creation-cooperation
|
|
|
kubectl -n mmm-suplus-preonline get pods | grep -q allied-creation-cooperation
|
|
|
if [ "$?" == "0" ];then
|
|
|
echo "allied-creation-cooperation deployment update success!"
|
|
|
else
|
...
|
...
|
|