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