Update benchmark.sh

This commit is contained in:
Torma Kristóf 2019-04-10 13:59:28 +02:00 committed by GitHub
parent 1ad954bbab
commit a19f99ab96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,6 +41,14 @@ then
cp $HOME/go/bin/hey /usr/local/bin cp $HOME/go/bin/hey /usr/local/bin
fi fi
kubectl get pods --all-namespaces| grep Evicted | $(awk '{print "kubectl -n " $1 " delete pod "$2}')
kubectl delete -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/provider/baremetal/service-nodeport.yaml
kubectl delete -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/mandatory.yaml
kubectl create -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/mandatory.yaml
kubectl create -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/provider/baremetal/service-nodeport.yaml
echo -e "Benchmarking GET functions\n" echo -e "Benchmarking GET functions\n"
for function in "${functions[@]}" for function in "${functions[@]}"
do do