作者 曾海沥

更新 install.sh

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