Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
innerpeacez committed Nov 29, 2019
1 parent 33ec5b8 commit 50b4b27
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions install/deploy/demo-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,31 +17,33 @@

set -e

free -lh
#free -lh

# The script for bookinfo Application to deploy
BOOKINFO_VERSION="1.3"
kubectl label namespace default istio-injection=enabled
kubectl apply -f https://raw.githubusercontent.com/istio/istio/release-${BOOKINFO_VERSION}/samples/bookinfo/platform/kube/bookinfo.yaml

kubectl get deploy | grep -E 'details|productpage|ratings|reviews' | awk '{print $1}' | while read deploy
do
for i in {1..5} ;do
echo "******************* $i time ***************************"
kubectl get deploy -o wide
echo "*********************** pod describe ******************************"
kubectl describe pod `kubectl get pod -o wide | grep $deploy | awk '{print $1}'`
echo "************************* deploy describe ****************************"
kubectl describe deploy $deploy
kubectl get event -o wide
free -lh
sleep 10
done
done
#kubectl apply -f ./bookinfo.yaml
#kubectl get deploy | grep -E 'details|productpage|ratings|reviews' | awk '{print $1}' | while read deploy
#do
# for i in {1..5} ;do
# echo "******************* $i time ***************************"
# kubectl get deploy -o wide
# echo "*********************** pod describe ******************************"
# kubectl describe pod `kubectl get pod -o wide | grep $deploy | awk '{print $1}'`
# echo "************************* deploy describe ****************************"
# kubectl describe deploy $deploy
# kubectl get event -o wide
# free -lh
# sleep 10
# done
#done

# check status
kubectl get deploy | grep -E 'details|productpage|ratings|reviews' | awk '{print "deployment/"$1}' | while read deploy
do
sleep 60
kubectl get event -o wide
kubectl wait ${deploy} --for condition=available --timeout=600s
done

Expand Down

0 comments on commit 50b4b27

Please sign in to comment.