作者 Administrator

更新 install.sh

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