Skip to content

Commit

Permalink
Add get-reviews script
Browse files Browse the repository at this point in the history
  • Loading branch information
hossambarakat committed May 16, 2019
1 parent 8783805 commit 1da334b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions get-reviews.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

REVIEWS_IP="$(kubectl get svc | grep espresso-shop-reviews-svc | awk '{ print $4 }')"
REVIEWS_URL="http://${REVIEWS_IP}:8092/api/version"

while true;
do
curl -s "${REVIEWS_URL}"
echo "" ;
sleep 0.5
done

# while true; do curl -s "http://$(kubectl get svc | grep espresso-shop-reviews-svc | awk '{ print $4 }'):8092/api/version" ; echo "" ; sleep 0.5; done

# while true; do curl -s "http://espresso-shop-reviews-svc:8092/api/version" ; echo "" ; sleep 0.5; done

0 comments on commit 1da334b

Please sign in to comment.